RE: [PHP] multiple submit buttons

From: Date: Wed, 20 Dec 2000 06:53:28 +0000
Subject: RE: [PHP] multiple submit buttons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31172@lists.php.net to get a copy of this message
On Wed, 20 Dec 2000, Samantha Savvakis wrote: > > Sounds like a browser issue. If PHP isn't receiving a value for submit, > > it's possible IE isn't sending one. If you use method="get" rather > > than > > post, you can see if a value for submit is being passed. If not, there's > > probably very little you can do. Maybe a bit of Javascript on the text > > field that sets a submit value, an onChange or something? (Says the person > > with no JS experience whatsoever) > > Yeah, I'd say Javascript would be the way to go to ensure that the default > button that is pressed is recognised. > > Thing is ... if it is a browser issue, how does it realise that the default > button has been pressed and that it is a submit button? Surely PHP picks > this up right? Unless it's just sending a reload page or the "FORM ACTION" > on a default button hit? The browser knows what's going on, yes. But if the browser doesn't choose to send a submit value, there's nothing PHP can do about it. As far as I know it's perfectly legal to submit a form without a submit value.. Though obviously it isn't very nice. :) Matt

« previous php.general (#31172) next »