in reply to Re: Re: Re: <input type="button"> does not generate parameter=>value pair
in thread <input type="button"> does not generate parameter=>value pair

I want to submit the form either by button1 or button2, and to get a value of clicked button. The reason I do not use two submit buttons - in real life my form has a text field as well, and when I press "Enter" in that text field, I want to submit a form with button2, not with button1. That is why I changed type=submit to type=button..

Thank you for you help!

--dda

  • Comment on Re: Re: Re: Re: <input type="button"> does not generate parameter=>value pair

Replies are listed 'Best First'.
Re: * <input type="button"> does not generate parameter=>value pair
by eric256 (Parson) on Jul 15, 2003 at 15:59 UTC
    Looking at the Forms section of the HTML 4.1 W3c Recomendation i noticed that you can do:
    <BUTTON name="submit" value="submit" type="submit">
    to create a submit button using a Button instead of an Input. I'm not sure how this effects the default button pushed though.
    Eric Hodges