Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a registration page which includes all the standard fields e.g. phone no, email etc.

The telephone and password are tab adjacent i.e. not physically adjacent but if you are tabbing it goes first name -> surname -> email -> telephone -> password.

For some reason is giving users a prompt to remember their user name and password when they register (which is nice) but it is saving the telephone number as the username.

Are there rules for helping it decide/stopping it from suggesting people remember the ever so useful telephone number/password combination?

Thanks in advance

EDIT:

  • The names on the form elements are "Phone" and "txtpassword".

  • I would like it to remember email and password. Is this achievable given the current situation?

  • Unfortunately I cannot reorder the form fields. The order is given in the tabbing above.

share|improve this question
    
Haha this happens to me too –  Mark Henderson Aug 16 '10 at 21:29

2 Answers 2

up vote 4 down vote accepted

Use autocomplete="off" to disable autocomplete and Firefox (and other browsers who support this non-standard attribute) will not save those values.

<input type=text" name="dontsave" autocomplete="off">

Edit:

What you're seeing may be due to the field names you are using. Auto-complete looks for common username/login field names to work and your telephone number field may be causing Firefox to believe it is the primary login ID field.

Edit 2:

Is the email field before or after the Phone field? If it is after, is it possible to put it before the Phone field? If so, does that make a difference?

share|improve this answer
    
I don't think the OP wants that behaviour. Plus, you cannot use autocomplete at the field level, it must be at the form level, i.e. <form autocomplete="false"... –  DisgruntledGoat Aug 16 '10 at 15:13
    
You can use it on the field level. Check out wachovia.com's login form as a perfect example. –  John Conde Aug 16 '10 at 15:22
    
@disgrunt - we use it on field elements all the time - specifically CC number/expiry fields. –  Mark Henderson Aug 16 '10 at 21:30

I have noticed similar behaviour in Google Chrome before. What are the names given to the input fields? I know that browsers often have problems with fields if they use code like name="signup[email]" to pass everything in one variable to the server side (very useful in PHP).

You could try using this simple format: <input name="username" type="text"> with email and password as the names for those two fields. (Note: I haven't actually tested this, when I came across this situation before I was not able to change the field names.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.