[PHP] using custom button instead of standard submit form element
I can't figure out how to tell which button was pressed by a user when i'm using a button instead of a standard submit form element. This works: input type=submit name=parent value=foo $parent will equal foo This doesn't work: button type=submit name=parent value=fooimg src=icon.gif/button $parent will equal img src=icon.gif NOT foo How do I get the value of foo to be returned in $parent and still use a graphical icon instead of a standard submit button? thanks, durwood ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using custom button instead of standard submit form element
At 10:08 29.01.2003, Justin French said: [snip] The W3.org site is down at the moment, so I can't confirm this, but I'm pretty sure... input type=submit name=parent value=foo src=icon.gif / input type=image name=parent value=foo src=icon.gif / AFAIR -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using custom button instead of standard submit form element
input type=image name=parent value=foo src=icon.gif / Note that when submitted, this will make a variable $parent_x and $parent_y with register_globals ON and $_POST['parent_x'] and $_POST['parent_y'] with it off (or $_GET or $_REQUEST, whatever you use). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php