Re: Submit buttons as images

From: Date: Fri, 06 Oct 2000 02:20:26 +0000
Subject: Re: Submit buttons as images
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18815@lists.php.net to get a copy of this message
You need to name the buttons: <input type="image" name="agree" src="agree.gif"> then check for the variables: $agree_x or $agree_y Charles ----- Original Message ----- Sent: Thursday, October 05, 2000 7:10 PM Subject: [PHP] Submit buttons as images How do you determine which submit button was pressed if you are using images instead of standard buttons for form data submission. I am having a problem with a form I'm working on. Basically the user enters some information, reads an agreement (yeah right... lol) and either clicks Agree or Disagree. My problem is that when I got rid of the std html buttons in favor of a pair of images that went along with the site design better, I can no longer figure out for the life of me which button was pressed. I know in perl/cgi scripts you can access the x or y co-ords of the image to figure out which one was pressed, but trying flavors of this with PHP didn't work. Can anyone shed some light on this? Thanks in advance. Ben -- 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 (#18815) next »