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

hi
How do you pass a "remember me" value through as hidden, so it is always checked, but you cannot see it.
User avatar
sean_82
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.

OR

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.

Andrew
User avatar
bezmond
Moderator
Moderator
 
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
swirlee
Moderator
Moderator
 
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 1 guest

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

cron