Re: Re: problem with image button

From: Date: Sun, 01 Oct 2000 09:42:38 +0000
Subject: Re: Re: problem with image button
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18197@lists.php.net to get a copy of this message
On Sat, 30 Sep 2000 22:01:56 -0700, Richard Creech (richardc@dreamriver.com) wrote: >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. sorry, there was some confusion about the way I worded the question. I was asking how to check which image button on a form is hit since the browser adds a .x and .y to the name when it gets sent. $name.x doesn't work because php wouldn't parse it properly so apparently it gets changed to $name_x. If any developers are reading, I think it might be a good feature to have php automatically set $name as well, maybe to 'on' which is the default value for checked checkboxes. I got a range of responses on this one including one flame telling me to RTFM on the . operator. All I can say to this one is that attitudes like this really kill a good list. It's one thing if a question gets repeated 10 times a day, but I've been reading this list for a year or so now and I never noticed a thread like this so let's try to keep it friendly. Many thanks to those who offered suggestions, - Mark p.s. the stupid button still doesn't work right in netscape. oh well...

« previous php.general (#18197) next »