Menu
Hi, I’m trying to set a simple cookie using php, but it isn’t working for some reason. Just curious if anyone has an idea.
[code=php]$name = $_POST[‘firstname’].”_”.$_POST[‘lastname’];
setcookie (“name”, “$name”);
When I print the cookie it says the value is simply “_“. However, on the page that I set the cookie, I echo out $
Why isn’t the $_POST part getting written to the cookie?