Re: image as submit

From: Date: Mon, 13 Nov 2000 19:07:55 +0000
Subject: Re: image as submit
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25012@lists.php.net to get a copy of this message
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 Jerry Lake wrote: > > Why is it that image submit buttons > don't sent variables? I have a table > of image thumbnails pull from a MySQL > record set and I'd like to be able to > click the thumbnails to get a template > page with the full size imageNumber determined > from the name of the thumbnail image > any ideas? > > Jerry Lake > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net --

« previous php.general (#25012) next »