[UPHPU] Posting a form

Wade Preston Shearer lists at anavidesign.com
Thu Feb 24 09:26:52 MST 2005


> All of this works great!  However, the first time a real user tried it,
> they entered the data into the form and hit the enter key instead of
> clicking on the submit button.  This seems to have the same affect as
> refreshing the page.  Since the submit button was not clicked the
> $_POST['submit'] variable is not available.
>
> Finally the question:  How do I make the enter key behave the same as
> clicking the submit button?
> All of my users insist they be able to press the enter key instead of
> clicking on the submit button or tabbing to it and then pressing 
> enter.  I
> am at a loss.  I am open to just about anything.

That sounds like a fluke or a browser issue. Keying "enter/return" is 
the same as clicking "submit."

Have you replicated this is alternate browsers?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2371 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20050224/9670c2bf/smime.bin


More information about the UPHPU mailing list