value of fom element not submittet
Posted: Thu Mar 27, 2003 12:25 am
Hi there,
I got a form containing some input fields and drop down menues. All of those values are submittet. however, the value of the buttons are not. i have more than one button and i want to know which one was klicked.
heres an example of what my script looks like:
<form action=page.php method=post>
<input type=text ....>
<input type=hidden ...>
<input type=button name=button1 value=button1 onClick=submit()>
<input type=button name=button2 value=button2 onClick=submit()>
<input type=button name=button3 value=button3 onClick=submit()>
</form>
So, all the values are in my _POST variables, except the buttons. how do i get those values?
I got a form containing some input fields and drop down menues. All of those values are submittet. however, the value of the buttons are not. i have more than one button and i want to know which one was klicked.
heres an example of what my script looks like:
<form action=page.php method=post>
<input type=text ....>
<input type=hidden ...>
<input type=button name=button1 value=button1 onClick=submit()>
<input type=button name=button2 value=button2 onClick=submit()>
<input type=button name=button3 value=button3 onClick=submit()>
</form>
So, all the values are in my _POST variables, except the buttons. how do i get those values?