Posted by Oli Filth on 11/02/05 17:07
Martin wrote:
> I would like to give a registered user of my website the option to
> save his user id on his computer such that it will be pre-entered the
> next time he goes to the log-in page.
>
> It's my understanding that to do this I would write the information to
> a cookie (after he successfully logs in with the option checked). What
> I'm not clear on is, how do I get the userid from the cookie into the
> text box on the log-in page? Do I read the cookie when he "hits" the
> log-in page and then load the text box before I send out the page?
>
Most modern browsers now support auto-completion of text boxes, which
is completely unaffected by anything you do in PHP.
I guess you could use the cookie method to override this behaviour,
though.
--
Oli
Navigation:
[Reply to this message]
|