Hi,
Could you please help me out of this problem? I want to store a variable "$txtusername" in a cookie. How do i do that?
foe example;
setcookie ("usrname", $txtusername,time()+3600);
Is it good?
If yes, how do i call the cookie ?
Regards,
shailen
PHP does all the dirty work with read cookies and simply assigns a variable as the cookies name.
so for your cookie, $usrname would show the contents of the cookie
Thanks for the answer.
But the problem blem is that it does not return any value when i write the follwing code:
echo $usrname;
Please help.
Please help me about it. How do i write the code to store a variable in a cookie and how do i retrieve it ?