Re: submit form problem

From: Date: Sun, 12 Aug 2001 21:05:27 +0000
Subject: Re: submit form problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62335@lists.php.net to get a copy of this message
I haven't found a way to disable the Enter key to submit the form, as I believe it does exists, but, found a way so when Enter is pressed works like Tab, moving to the next form field. Here: http://www.faqts.com/knowledge_base/view.phtml/aid/6793/fid/129 Google search used: http://www.google.com/search?q=javascript+disable+enter+form&sourceid=opera& num=0 Sadly, it is Javascript, so an user can disable, but for those mistake key presses, should work. -- Julio Nobrega. 2B||!BB - That's the question. "Ivo Stoykov" <ivostoykov@hotmail.com> wrote in message news:20010812193130.62238.qmail@pb1.pair.com... > Well, here's the problem I faced. > > I've a script accepting four different forms depending on the user choice. > Some of the forms have two submit buttons forcking actions accordingly to > the pressed button. > > The problem is: $HTTP_POST_VARS["submit"] is not set if the user press ENTER > instead of clicking the button and the scripts cannot return a response for > it is not clear which button has been pressed. > > Hidden field cannot works with two submit buttons for I'll have two values, > but again cannot cach the user choice in case of ENTER press. > > Any help? Thank you > > Ivo > >

« previous php.general (#62335) next »