form and submit button

S

steve

I have a simple form
One text field and two drop down manus and a submit button.
If the visitors fill in the field and click the submit button then it
work just fine.
But if they just hit the enter instead of clicking on the submit
button, then the variables are not send.

How can I fix that
Thanks

-- -- -- -- -- -- -- -- -- -- -- --
www.saHOSTplus.com
 
L

Leif K-Brooks

steve said:
I have a simple form
One text field and two drop down manus and a submit button.
If the visitors fill in the field and click the submit button then it
work just fine.
But if they just hit the enter instead of clicking on the submit
button, then the variables are not send.

Every Thursday, crystal balls become ultra-sensitive to thunder storms
everywhere in the world. This causes them to be struck by internal
lightning, putting them out of service until they can be repaired.

All of alt.html's crystal balls are still in the shop, so we'll need to
see an example page.
 
S

steve

I have a simple form
Every Thursday, crystal balls become ultra-sensitive to thunder storms
everywhere in the world. This causes them to be struck by internal
lightning, putting them out of service until they can be repaired.

All of alt.html's crystal balls are still in the shop, so we'll need to
see an example page.

www.sahostplus.com
 
D

Deryck

steve said:
I have a simple form
One text field and two drop down manus and a submit button.
If the visitors fill in the field and click the submit button then it
work just fine.
But if they just hit the enter instead of clicking on the submit
button, then the variables are not send.

How can I fix that
Thanks


I see 3 forms on that page. The first 2 seem to work as you want. The third,
billing, exhibits the unwanted behaviour. There is a lot going on on that
page so it's hard to see exactly whats happening but clearly the 3rd
form/table is constructed very differently to the other 2;

<form name="whmlogin">
<form name="cplogin">

and for billing....

<form name="form2" method="post"
action="http://www.sahostplus.com/billing/index.php?op=login&username=client
_email_address&password=client_password" onSubmit="return submitCheck()">

In the offending form the method is 'post' and it isn't defined in the other
forms (there is some other stuff in the form too, eg hidden fields).
The Login buttons are set up differently too:

<input name="button" type="button" onClick="whmLogin(this.form)"
value="Login">
<input name="button" type="button" onClick="cpLogin(this.form)"
value="Login">

and for billing....

<input type="submit" value="Login" name="specbut1">

Not being an expert of forms (nor having the book to hand) I cant really
advise but maybe you can make the 3rd form more like the others? :)


Hope that provides a starting point anyway,


Deryck
 
S

steve

I have a simple form
I see 3 forms on that page. The first 2 seem to work as you want. The third,
billing, exhibits the unwanted behaviour. There is a lot going on on that
page so it's hard to see exactly whats happening but clearly the 3rd
form/table is constructed very differently to the other 2;

<form name="whmlogin">
<form name="cplogin">

and for billing....

<form name="form2" method="post"
action="http://www.sahostplus.com/billing/index.php?op=login&username=
client
_email_address&password=client_password" onSubmit="return submitCheck()">

In the offending form the method is 'post' and it isn't defined in the other
forms (there is some other stuff in the form too, eg hidden fields).
The Login buttons are set up differently too:

<input name="button" type="button" onClick="whmLogin(this.form)"
value="Login">
<input name="button" type="button" onClick="cpLogin(this.form)"
value="Login">

and for billing....

<input type="submit" value="Login" name="specbut1">

Not being an expert of forms (nor having the book to hand) I cant really
advise but maybe you can make the 3rd form more like the others? :)


Hope that provides a starting point anyway,

Ops I suppose to explain that.
I hade on mind the form on the middle of the page the one for domain
look up.
 

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

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top