submit and reset button

Discussion in 'HTML & Website Design' started by ichkoguy, Jan 20, 2009.

  1. #1
    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.
     
    ichkoguy, Jan 20, 2009 IP
  2. bhajan

    bhajan Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    bhajan, Jan 20, 2009 IP
  3. GMArsenal

    GMArsenal Guest

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    GMArsenal, Jan 20, 2009 IP
  4. smartoptions777

    smartoptions777 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would recommend a php form instead
     
    smartoptions777, Jan 20, 2009 IP