473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Browsers auto-filling bad fields

Hello,

All the browsers I tested are filling two fields that aren't for logging in, both have different names from the ones on the login form, and eventhough, the browsers fill them, I have read that removing the value tag instead of just writing empty would resolve the problem, but the value tag is already absent from my fields.

PS : Just to mention that my fields have text and password as types.

How can I avoid that ? Does anyone know ?
Jan 13 '10 #1

✓ answered by gits

here is a nice article which handles the autocomplete-issue ... to avoid it you might use the attribute:
Expand|Select|Wrap|Line Numbers
  1. autocomplete="off"
for a node ... but since it is non-standard it will invalidate the html. one workaround would be to set it through javascript ...

kind regards

8 2223
acoder
16,027 Expert Mod 8TB
Most likely the cause will be the password field. Is there any need to have another password field? A link or some code?
Jan 13 '10 #2
I have another password field just after this one, for confirmation.
Jan 13 '10 #3
acoder
16,027 Expert Mod 8TB
Can you post the HTML code or a link?
Jan 13 '10 #4
Expand|Select|Wrap|Line Numbers
  1.     <tr>
  2.             <td class="odd">Website</td>
  3.             <td class="odd">
  4.             <input type="text" <?php if(!empty($user['url'])) echo "value=\"{$user['url']}\"";?> name="url" />
  5.             </td>
  6.         </tr>
  7.         <tr>
  8.         <td class="odd">New password</td>
  9.         <td>
  10.         <input type="password" name="newpass" id="newpass" />
  11.         <input type="password" name="newpassconfirm" id="newpassconfirm" />
  12.         </td>
  13.         </tr>
  14.  
here is the code, newpass gets the password and the url fields gets the uname, I noticed that when the database returns a non-empty value, it doesn't happen.
Jan 13 '10 #5
acoder
16,027 Expert Mod 8TB
Is the login form on the same page? If not, the problem will be that the browsers see a blank text field followed by a password field and think "login form" and fill the fields.
Jan 15 '10 #6
The login form will never be in this page, as it is an area for logged-in users only, I will by default fill the field with "http://" if db is empty .. thanks acoder for your messages
Jan 15 '10 #7
gits
5,390 Expert Mod 4TB
here is a nice article which handles the autocomplete-issue ... to avoid it you might use the attribute:
Expand|Select|Wrap|Line Numbers
  1. autocomplete="off"
for a node ... but since it is non-standard it will invalidate the html. one workaround would be to set it through javascript ...

kind regards
Jan 15 '10 #8
Thanks a lot it worked !
Jan 15 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: johkar | last post by:
I only have IE 6 and dial-up. Can you help me determine which browsers support this code? Thanks, John <html> <head> <title>Fixed Table Headers</title> <script language="JavaScript"...
3
by: Stuart | last post by:
I am very new to javaScript, and I am hoping someone can explain the differance between the following two browsers and how to deal with thier differant approach to firing the onLoad event. The...
3
by: Jeff | last post by:
Hi All: I'm writing a page that I'm going to need some assistance with, using the IFrames... I know how to use them, but what I'd like to do is write a page (using ASP here BTW) that has 2-5...
111
by: Retlak | last post by:
The recommended (on dozens of websites) and effective (works in Netscape, MSIE, Mozilla, probably others) way to detect if a browser has Javascript turned off is to put this in the <head>: ...
15
by: Hal Robertson | last post by:
I have created a rather complicated series of html forms for a data entry wizard In my mozilla browser, every time I submit each form along the process, it asks me if I want to remember the...
18
by: day | last post by:
I know I've seen this issue described before, but I can't find it, or the solution now that I need it. I have some css-specified floating divs that contain images or text. The text divs have a...
7
by: Dr J R Stockton | last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in IE6, IE7, Firefox 2, and wherever else practicable, with the control labelled F.X0 fully visible at the top of the window and...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
1
by: piscesabhi | last post by:
Is there a way to auto resize the website, when using different browsers? I was using this javascript earlier but i don't want to specify dimensions........i would like it to automatically adjust...
24
by: GloStix | last post by:
I'm trying to center this banner, it's in a div that has the same width so it's not exactly "centering" but it's screwed up, It works in safari but in Firefox it's messed up. I uploaded a Video to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.