PHP cookies help!! be quick, ver very urgent?

  • Thread starter Thread starter kapeel
  • Start date Start date
K

kapeel

Guest
this is my php code to set cookies, i have register globals=on on my web host. please help me. php code for making cookies :-

<?php

$user=str_rot13($users);
$name=str_rot13($nam);

setcookie('de_user', "$user", time()+1800 , "/");
setcookie('de_name', "$name", time()+1800 , "/");

?>

for getting cookie data : -

<?php

$name= str_rot13($_COOKIE["de_name"]);
$email=str_rot13($_COOKIE["de_email"]);

?>
it is working on my wamp server ,but it is not working on my web hosts.
daniel, your link is not working
 
I'd like to help so I got this site which might be helpful:

http://www.tizag.com/phpT/phpcookies.php

If the code doesn't work try google or ask or yahoo
 
Back
Top