On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr <[EMAIL PROTECTED]> wrote: > "Richard Davey" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello Jason, > > > > Tuesday, July 6, 2004, 2:37:08 PM, you wrote: > > > > JW> It might not be a good idea to rely on the "submit" button to be set. > Some > > JW> browsers do not set/send it if you didn't explicitly click on the > "submit" > > JW> button. I would use: > > > > Absolutely. If you hit ENTER to submit a form (rather than click the > > button) you often don't get sent the button value. > > > > Best regards, > > > > Richard Davey > > I never had this problem. Usually the first submit button will come into > effect when hitting enter. And my question remains: > > How do you check which button was pressed (read: which action should be > performed) when not relying on this? >
The button is generally *not* sent by the browser if you hit enter instead of submit. This *will* happen, so you have to deal with it. If you want to knwo what button was pressed, you have to have different button names or values and check them. A button is just another form element that is submitted. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php