Re: problem with image button

From: Date: Sun, 01 Oct 2000 05:01:56 +0000
Subject: Re: problem with image button
Groups: php.general 
Request: Send a blank email to php-general+get-18189@lists.php.net to get a copy of this message
Mark, You can't do what you want to do using only HTML 4.00 W3C - but you can with Javascript. http://www.dreamriver.com/deleteme.php3 At this url I've set up your test case. Because it is client side you can view source to see how it works. Essentially I've just added a value property/attribute and then tested for it with Javascript as launched with the onclick event handler. Regards, Richard Creech richardc@dreamriver.com Phone: 250.744.3350 Pacific Time Canada http://dreamriver.com __________________________________________________ Mark Maggelet <maggelet@mminternet.com> summarily said: Subject: problem with image button Hi there, Let's say I have a form with three image buttons: <input type=image name=add src="add.gif"> <input type=image name=delete src="delete.gif"> <input type=image name=update src="update.gif"> when I process the form I want to see what button was pressed, but instead of add being set, add.x and add.y get set. now the question is: what's the best way to check which one is set since doing this: if(isset($add.x)) ... gives a parse error? thanks, - Mark

« previous php.general (#18189) next »