I can tell who you are if you visit this page again within next 2 minutes

Your name:

Preferred color:

EOD; if(isset($_COOKIE["color"])){ echo " Welcome back $_COOKIE[username]"; }else if(isset($_POST["username"])){ setcookie("username",$_POST["username"],time() + 2*60); setcookie("color",$_POST["color"],time() + 2*60); echo " I have created a cookie to remember your submitted information You are $_POST[username] and preferred background color is $_POST[color] Reload this page or visit agin, you will see my welcome message"; }else{ echo $myForm; } ?>