Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] automatic filling of login field


  • From: mdougherty at pbp.com (Mike Dougherty)
  • Subject: [Javascript] automatic filling of login field
  • Date: Fri May 4 10:45:06 2007

On 5/4/07, Bernu Bernard <bernu@xxxxxxxxxxxxxxxx> wrote:
>
> <form ...>
>         <input type="text" name="login">
>         ...
> </form>
> the field is automatically filled the second time you come back to
> that site.


If you know the information you can use:
<input type="text" name="login" value="userlogin" >

If (after the original submission) you store the information in a cookie,
then you can read the cookie that is sent to the server from the browser
each time.

An alternate approach might be to have client-side javascript writing a
cookie, then having script read the cookie and refill the form - but that
approach seems more complicated to me (since I originally learned the
server-side methodology)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.LaTech.edu/pipermail/javascript/attachments/20070504/22f79a27/attachment.html