RE: [PHP] Using custom "button" form element instead of standard "submit"?

From: Date: Wed, 29 Jan 2003 20:10:31 +0000
Subject: RE: [PHP] Using custom "button" form element instead of standard "submit"?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133552@lists.php.net to get a copy of this message
On 27-Jan-2003 Durwood Gafford wrote: > 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="foo"><img > 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? > <input TYPE=IMAGE NAME="parent" VALUE="foo" SRC="icon.gif"> Regards, -- Don Read dread@texas.net -- "Beer is proof that God loves us and wants us to be happy."

« previous php.general (#133552) next »