[PHP] using custom button instead of standard submit form element

2003-01-29 Thread Durwood Gafford
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

Re: [PHP] using custom button instead of standard submit form element

2003-01-29 Thread Ernest E Vogelsinger
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 --

Re: [PHP] using custom button instead of standard submit form element

2003-01-29 Thread 1LT John W. Holmes
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