Re: multiple submit buttons

From: Date: Wed, 20 Dec 2000 06:54:41 +0000
Subject: Re: multiple submit buttons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31176@lists.php.net to get a copy of this message
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? > > ahh.. it's just annoying :) Buttons are only submitted when they are clicked on. Pressing enter on a form submits HIDDENs, INPUTs, SELECTSs, TEXTAREAs, CHECKBOXes, RADIOs, etc, but not BUTTONs nor SUBMITs.

« previous php.general (#31176) next »