It does not want to make a cookie if ther is no cookie, what am I doing wrong can somebody discribe it?
<?php
$NewNaam=$_POST["NewNaam"];
if (isset($_COOKIE['Naam'])) {
$Naam = "$NewNaam";
} else {
$NewNaam=$_POST["NewNaam"];
setcookie("Naam",$NewNaam,time()+40000,"/test/");
$Naam = "$NewNaam";
}
?>
Thx Skywalker
No it won't make a cookie if ther is non?
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
There is already a thread open with this topic in it, please do not cross-post.
Anybody trying to help could you please post your answer here:
http://www.devnetwork.net/forums/viewtopic.php?t=2650
Mac
Anybody trying to help could you please post your answer here:
http://www.devnetwork.net/forums/viewtopic.php?t=2650
Mac