FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Remember name..





ranzon
Hi..

I'm making a system to send music-wishes\comments and more, to a dj wich are onair.

in the form i want to make a system to remember the name forever if the user checks the box with remember my name...

is it possible to put this in a cookie with lifetime forever??
i don't have a clue how to put something in a cookie..

please help me.. <3
LukeakaDanish
just google for

Cookie javascript

Why dont you just set lifetime to something like

Code:
now.setFullYear(now.getFullYear() + 1000);


eg year 3006

edit: I think this belongs in the javascript topic btw Think
cambridge
well, "forever cookies" are from fairy tales, i'm afraid;-)
LukeakaDanish
cambridge wrote:
well, "forever cookies" are from fairy tales, i'm afraid;-)


Well year 3006 is pretty much forever...

At least i will be very supprised if there is still a "frihost" in year 3006

(no offence bondings Anxious )
yjwong
PHP can set the cookies too...if you please

Code:

setcookie("name", $_POST["nameinform"],time+999999999999999);


999999999999999 is a lot of seconds Razz
Related topics
Windows Tips&tricks!
My Graphics Design Collection
Do you like bush? Or do you hate bush?
Riddles. Win FRIH$ :-)
I need a name!
[Resolved]How come database name test
Anid Blyton (not sure how to spell her last name)
Support Danish
Bored Of Porn V3
Name my Premodded Forum
Using Two Internet Connections at The same time
Family Guy
HELP ME REMEMBER A NAME OF A SHOW!
cannot get into cpanel
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.