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.
Originally Posted by cbVision
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?
you can try with this code
<title>Process the HTML form data with the POST method</title>
<form method="POST" action="process.asp" name="form1">
<table width="70%" border="0" cellspacing="0" cellpadding="0">
<td colspan="2"><input type="text" name="name"></td>
<td colspan="2"><input type="text" name="email"></td>
<td colspan="2"><textarea name="comment" cols="40" rows="5"></textarea></td>
<td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
I'm thinking you could simply execute that plugin whenever your button is clicked.
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?
Originally Posted by mdsujaan
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.
In the action field of the form, set the action as “mailto:youremailaddress” for example:
this can act different in different browsers though. the best way to set this up is with php. in my opinion
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)