how to get different submit button values, when images?

From: Date: Wed, 10 Oct 2001 15:33:10 +0000
Subject: how to get different submit button values, when images?
Groups: php.general 
Request: Send a blank email to php-general+get-70687@lists.php.net to get a copy of this message
I have a script that needs several different submit "buttons" in a single form, and I need to have the script figure out which button they pushed. However, I am trying to make all of the buttons images, but am having trouble getting an image button carry a value with it... any ideas? this is what I have: the three submit buttons carry the correct value (ie, value5) with them to the $submit variable, but the three image buttons don't. ---------------------------------------------------------------------------- ------------------------------------------------------------- <form method="post" action="test.phtml"> <input type="image" src="blackdot2.jpg" width=20 height=20 value="value1" name="submit"> <input type="image" src="blackdot2.jpg" width=20 height=20 value="value2" name="submit"> <input type="image" src="blackdot2.jpg" width=20 height=20 value="value3" name="submit"> <input type="submit" value="value4" name="submit"> <input type="submit" value="value5" name="submit"> <input type="submit" value="value6" name="submit"> </form> <? echo $submit; ?> ---------------------------------------------------------------------------- ------------------------------------------------------------- Thanks. brian

« previous php.general (#70687) next »