I have a web page that uses cookies to track logins. I present a login for it like this:
<FORM ACTION="/authenticate" METHOD="post">
<TABLE BORDER="0" ALIGN="center">
<TR>
<TD VALIGN="top" ALIGN="right">
<FONT SIZE="2">Login: </FONT>
</TD> <TD VALIGN="top" ALIGN="left" >
<INPUT TYPE="text" NAME="login" SIZE="24" VALUE="" >
</TD>
</TR>
<TR>
<TD VALIGN="top" ALIGN="right"><FONT SIZE="2">Password: </FONT></TD>
<TD ALIGN="left" >
<INPUT TYPE="password" NAME="password" SIZE="24" VALUE="">
</TD>
</TR>
</TABLE>
<P>
<DIV ALIGN="center"><INPUT TYPE="SUBMIT" VALUE="Continue"></DIV>
</FORM>
This works fine and I can use Firefox to save my login password. Within the application I allow person records to be modified including their login and password. Within that form I present something like this:
<TR>
<TD VALIGN="top" ALIGN="right">
<FONT SIZE="2">Login<BR>(Optional): </FONT>
</TD> <TD VALIGN="top" ALIGN="left" >
<INPUT TYPE="text" NAME="person_login" SIZE="8" VALUE="">
</TD>
</TR>
<TR>
<TD VALIGN="top" ALIGN="right">
<FONT SIZE="2">Password: </FONT></TD>
<TD ALIGN="left" >
<INPUT TYPE="password" NAME="person_pass" SIZE="8" VALUE="">
</TD>
</TR>
Even though it uses different names, Firefox displays my own login and stars for the password. However, if the person_login has a value other than blank it seems to do the correct thing. Is this a Firefox thing? Can I do something in HTML to fix this?
autocomplete
, and it shouldn't have any impact when saving passwords.