Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

remember me" value

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

remember me" value

Postby sean_82 » Sat Sep 25, 2004 2:53 pm

How do you pass a "remember me" value through as hidden, so it is always checked, but you cannot see it.
User avatar
New php-forum User
New php-forum User
Posts: 6
Joined: Fri Apr 16, 2004 4:04 am

Postby bezmond » Sat Sep 25, 2004 9:24 pm

you could use PHP's sessions.


use the following method:
<input type="hidden" name="hiddenfieldname" value="<? echo $_POST['hiddenfieldname'];">

This would then be submitted with each page of the form, but you would need to put that code on every page you used.

User avatar
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK

Postby swirlee » Mon Sep 27, 2004 6:45 am

It depends on how the script checks to see whether or not the box is checked. Many just check whether it has a value, so as long as you pass a hidden field with a value, the script will interpret it as "checked".
User avatar
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.