Enter Key doesn't work on forms

B

bobbetts

I have a webpage that has three forms on it. Two are google search
forms. The third (code listed below) is for the user to enter their
password. If text is entered in either of the google search boxes and
the enter key is pressed, then the result screen is presented.
However, if a person enters a password then hits the enter key the
screen blinks and comes right back except that the password box is now
empty of characters. If the submit button is clicked on with the mouse
then the password is accepted (or rejected if wrong) and the next
screen is presented.

With Firefox the enter key works as expected, that is, it does exactly
the same thing as clicking the mouse on the submit button (it presentrs
the next screen)

This is the form which causes the problem:

<form action="<? echo $PHP_SELF ?>" method="POST" >
<input type="hidden" name="SerialID" value="<? echo $SerialID ?>" >
<b> Member Password :</b>
<input type="password" name="Password" size="15" >
<input type="submit" name="Submit1" value="Submit"><br>
<font color="#CC0000"><b>You MUST use the submit button!</b></font>
</form>

Despite the fact there is a disclaimer that the user must click the
submit button I still get people who say they cannot enter their poem
or story. I would like to stop this.

Is there a way to fix this so the enter key will work with IE??

Usagi
 
R

Robert Aldwinckle

....
However, if a person enters a password then hits the enter key the
screen blinks and comes right back except that the password box is now
empty of characters.
Is there a way to fix this so the enter key will work with IE??


Are you sure that your server isn't doing this?

You need to trace the two cases and compare the differences
in the two requests. If the protocol is HTTP FiddlerTool would be
sufficient. Otherwise you could try adding RPASpy and hope that
it captures all the parameters in a POST. (I don't know if it does or not.)
Otherwise the next easiest place to do the diagnosis would be on the
server after the request is decrypted.

You may get a more informed answer from a newsgroup which
specializes in web development.


Good luck

Robert Aldwinckle
---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top