I have a doubt in html form creation. If i do not specify any function for submit and reset, Will there be any default actions will be substituted for those buttons. The scenario is this. I created a html form. Had submit and reset buttons. But did not specify any action for those buttons. But still i could see that when i clicked the reset button, my form values got cleared. But i did not write explicit code for the reset button. So i wanted to know whether any default function was run and cleared!!! Need your help and explanation guys. Thanks.
Hi... default functionality of the reset button is clear all the entered values within the form. Can you look this URL http://www.htmlcodetutorial.com/forms//_INPUT_TYPE_RESET.html
The reset button is the only form button that has a default action. The submit button action is usually defined in the code at the beginning using something similar to this: <FORM action="http://LINK TO MAIL PROCESSOR" method="post"> For the action you can use cgi-email and formail actions that most website hosts provide. Usually all you have to do is paste the link in the action part and build your form. If your host provides CGI Email usually the information can be found (along with a guide on how to setup your form) by going to your cpanel and clicking CGI Scripts. The method part of the submit action varies depending on what your trying to do, but most often it is post.