[PHP] Re: submit form problem

2001-08-12 Thread Inércia Sensorial

  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+formsourceid=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 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 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





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: submit form problem

2001-08-12 Thread Richard Lynch

 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.

Either explicitly state a default action, or analyze the actual data
coming in to decide what the user must have meant.

I *thought* enter was only supposed to work in a text field when there's
only one SUBMIT...  But it wouldn't shock me if some browser broke that.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]