Missing somthing, cant quite put my finger on it...Code:<?php ob_start; if($_SERVER['REQUEST_METHOD']=="POST")( setcookie("name", "$_POST['name'];", time()+3600"); else { ?> <form name="name" method="post" action="<?=$_SERVER['PHP_SELF'];?>"> Name: <input name="name" type="text"> <br> <input type="submit" name="Submit" value="Submit"> </form> <?php } ?>


Reply With Quote






