Present Textbox "dropdown" in Login Form

Hi Experts,

I have a Login form with user name and password, and on the form's tag I have autocomplete = "off". However, on my client's PC, not on mine, and specifically on Chrome, they still get a list of who logged in. How can I fix this?

Thank you
APD TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
... get a list of who logged in.
How does this happen?  Is there a database and some code involved?
Dave BaldwinFixer of ProblemsCommented:
Chrome is probably caching previous entries into the form.  Post the code for the form so we'll be talking about the same thing.

PS: Chrome is very good at remembering.  It even remembers my banking login when no other browser will.
Agree with Dave Baldwin that it is likely chrom caching info being su bitter in the form.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Dave BaldwinFixer of ProblemsCommented:
It appears that the Chrome team was still arguing about this last month and there is no reason to think it will be fixed soon.  I do know how to get around this if your login page is PHP.  Basically, you change the 'name' of the field every time it is loaded and use PHP to identify the correct field when it is posted.  There are several ways to do that including storing the name in a $_SESSIONS variable.  With a different name every time, there will be no history for that input.
Dave BaldwinFixer of ProblemsCommented:
On another page, it was mentioned that using autocomplete="off" can prevent new entries from being saved but does Not delete old ones that were saved.
Dave BaldwinFixer of ProblemsCommented:
Here is a demo showing how to do it.  Save as 'VaryLogin.php' because it posts to itself.  The Name field changes it's 'name' attribute each time while the Email field does not.  The Name field has no history but the Email field still does because it's 'name' attribute doesn't change.
<?php // VaryLogin.php by Dave Baldwin

$title = "Variable Login Name Field";

if(isset($_SESSION['pname'])) $pname = $_SESSION['pname'];
else $pname = 'nameText';
# some settings of vars
if (!isset($_POST[$pname])) $nameText = ''; else $nameText = $_POST[$pname];
if (!isset($_POST['fromText'])) $fromText = ''; else $fromText = $_POST['fromText'];

// new name
$nutime = time();
$newText = 'nu'.md5($pname.$nutime);
$_SESSION['pname'] = $newText

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><?php echo($title)?></title>
<style type="text/css">
A:link { color: #999999; }
A:visited { color: #999999; }
A:hover {color: #0099ff;}


<body bgcolor="#ddeedd">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" summary="" width="580">
<tr><td align="center">
<font size="4" color="#000000">
<p>Previous name was <?php echo($pname)?>.<br>New name is <?php echo($newText)?></p>
<form method="POST" action="VaryLogin.php">
    <p><font size="3"><b>Name : <input type="text" name="<?php echo($newText)?>" size="46"></b></font></p>
    <p><font size="3"><b>Email: <input type="text" name="fromText" size="46"></b></font></p>
    <p><font size="3"><b><input type="submit" value="Send" name="send" style="font-family: Arial; font-size: 12pt; font-weight: bold"></b></font></p>
    <input type="hidden" name="state" value="1">


Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
APD TorontoSoftware DeveloperAuthor Commented:
I took the user name out of the <form>, then make a hidden field within, and with JS copied the value onSubmit. :)
Dave BaldwinFixer of ProblemsCommented:
That's a good way too.!  Thanks for the points.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.