Question about HTML forms

Need help with an engine or coding not on the list? Need help with a game or the website and forums here? Direct all questions here.
Post Reply
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Question about HTML forms

Post by OldRod »

I have a registration form, but when the page loads up, it shows the name and password of my mySQL setup by default in the 'username' and 'password' fields of the form.

Is there a way to force the fields in the form to be blank on startup?
User avatar
Sakar
Posts: 520
Joined: Thu Apr 23, 2009 2:59 am

Re: Question about HTML forms

Post by Sakar »

Could we see your code? Hard to tell why it's doing that without seeing the code ;)
Falken
Posts: 438
Joined: Fri May 08, 2009 8:03 pm

Re: Question about HTML forms

Post by Falken »

Maybe it is browsers auto complete function that does that. If you want it to be disabled for a field you can add

Code: Select all

autocomplete="off"
to the field tag. Altho this is not valid HTML/XHTML, so your page wont validate if you use this.
--- Game Database ---
For all your game information needs!
Visit us at: http://www.gamedatabase.eu today!
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Question about HTML forms

Post by OldRod »

*edit* it's fixed - see below :)
Last edited by OldRod on Mon Dec 21, 2009 2:34 am, edited 1 time in total.
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Question about HTML forms

Post by OldRod »

Ok, an update - I am using Firefox and I checked the saved password list. Localhost had a saved password, so I deleted it.

That took care of the password field being filled in, but "root" is still showing up in the email address field. :?:
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Question about HTML forms

Post by OldRod »

Ok, I restarted Firefox and the problem went away - must have been something in the cache I guess.

Sorry for the bother :)
Post Reply

Return to “Advanced Help and Support”