Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Cookies in PHP
mastergamer wrote:
$user = $_COOKIE['user'];
if($user == 1)
{
//Do Something
}
?>```
If you do this, you only check for the value of $_COOKIE['user'] , if you want to check if the cookie has been created too you could use something like this:
```markup<?php
if(isset($_COOKIE['user']) && $_COOKIE['user']==1)
{
print("The cookie has been set and the value= 1" );
}
else
{
print("No cookies for you today!" );
}
?>```
Note that the following line that mastergamer wrote GENARATES $_COOKIE['user'], so checking for the existance of the cookie would be pointless...
Hope that helps,
S-H