Re: image as submit

From: Date: Mon, 13 Nov 2000 19:10:58 +0000
Subject: Re: image as submit
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-25013@lists.php.net to get a copy of this message
sorry, i meant mybutton_x not mybutton.x Steve Nelson http://www.SecretAgents.com Tools for Fusebox Developers Steve Nelson wrote: > > They do send variables. They just don't send values. It's annoying. > > What they send are the coordinates of where you clicked. For example: > > <input type="image" name="mybutton" src="someimage.gif"> > > sends: > > mybutton.x=52 > mybutton.y=121 > > one of the only ways I've figured out around this is to put the value > that you want the button to be in the name itself, then parse out the > value after it's been submitted. Like this: > > <input type="image" name="mybutton_572" > src="someimage.gif"> > > It's a pain in the ass, but it works. > > Steve Nelson > http://www.SecretAgents.com > Tools for Fusebox Developers

« previous php.general (#25013) next »