Multiple submit buttons, images, and variables
Posted: Sat Aug 24, 2002 8:50 am
My form has one selection box, and after making the selection the user clicks "Revise," "Delete" or "Print" button.
To use multiple submit buttons in a form and have each button pass a variable to identify which one was clicked:
That passes the variable $Submit with content "Revise," "Delete" or "Print." But I want to use images for the buttons:
Doesn't pass the $Submit variable at all.
So how can I use multiple submit button images and inform the receiving php file which one was clicked along with the selection that was made?.
To use multiple submit buttons in a form and have each button pass a variable to identify which one was clicked:
Code: Select all
print("<input type=submit name=Submit Value=Revise>");
print("<input type=submit name=Submit Value=Delete>");
print("<input type=submit name=Submit Value=Print>");Code: Select all
print("<input type=image name=Submit value=Revise src="Add.gif">");
etc.So how can I use multiple submit button images and inform the receiving php file which one was clicked along with the selection that was made?.