www.webdeveloper.com
Results 1 to 7 of 7

Thread: What is the HTML Code to save HTML Form

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    3

    Post What is the HTML Code to save HTML Form

    Hello forum members,

    I would like to as if anyone knows how to write a code to save contents of a form created. I have created s form but Iwould like to have a save button so that I am able to save the form contents. Please help. Thanks.

    Pedro.

  2. #2
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,143

  3. #3
    Join Date
    Jun 2013
    Posts
    3
    Quote Originally Posted by cbVision View Post

    Thanks for your reply. Anyway do you know of any HTML code using a save button, that when clicked saves the form contents as opposed to autosave plugin?

    Thanks.

  4. #4
    Join Date
    Jun 2013
    Posts
    1
    you can try with this code

    <html>
    <head>
    <title>Process the HTML form data with the POST method</title>
    </head>
    <body>
    <form method="POST" action="process.asp" name="form1">
    <table width="70%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>name:</td>
    <td colspan="2"><input type="text" name="name"></td>
    </tr>
    <tr>
    <td>email:</td>
    <td colspan="2"><input type="text" name="email"></td>
    </tr>
    <tr>
    <td>comments:</td>
    <td colspan="2"><textarea name="comment" cols="40" rows="5"></textarea></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>

  5. #5
    Join Date
    Jun 2013
    Posts
    3
    Quote Originally Posted by mdsujaan View Post
    you can try with this code

    <html>
    <head>
    <title>Process the HTML form data with the POST method</title>
    </head>
    <body>
    <form method="POST" action="process.asp" name="form1">
    <table width="70%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>name:</td>
    <td colspan="2"><input type="text" name="name"></td>
    </tr>
    <tr>
    <td>email:</td>
    <td colspan="2"><input type="text" name="email"></td>
    </tr>
    <tr>
    <td>comments:</td>
    <td colspan="2"><textarea name="comment" cols="40" rows="5"></textarea></td>
    </tr>
    <tr>
    <td>*</td>
    <td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    Thanks for the code so incase i need to send the filled information to an email. Where do I place the page link and my email so that when I click submit all the dat filled goes to my email?

    Also is it possible to save the data filled in an HTML form to a local machine just as you can save word document?

    Thank you once again.
    pedro.

  6. #6
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,143
    I'm thinking you could simply execute that plugin whenever your button is clicked.

  7. #7
    Join Date
    Aug 2012
    Location
    TX
    Posts
    293
    In the action field of the form, set the action as “mailto:youremailaddress” for example:

    <form action="mailto:myforms@mydomain.com">

    this can act different in different browsers though. the best way to set this up is with php. in my opinion

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles