[Javascript] automatic filling of login field

Mike Dougherty mdougherty at pbp.com
Fri May 4 10:44:55 CDT 2007


On 5/4/07, Bernu Bernard <bernu at lptmc.jussieu.fr> 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: <http://lists.evolt.org/pipermail/javascript/attachments/20070504/22f79a27/attachment.htm>


More information about the Javascript mailing list