wangsc66 wrote:doesn't matter if there's a quotation mark.
Actually, it does; but if you've got error reporting turned down you'll be missing all those notices from PHP telling you it's a Bad Thing.
If you're doing this on your computer, set error_reporting in php.ini to E_ALL. If you're using someone else's (or this is live, but who would be building a site there?) then use the [man]error_reporting[/man] function to do the same thing.
As for setcookie not working, note that because you're not specifying a path then the page where you're setting it and the page where you're trying to view it will need to be in the same directory (more accurately, their URLs have to be identical up to the end of the path). Are they?