Ok, I've been trying for the last 12 hours to get this damn script to set one damned cookie! LOL. But I can't figure it out so I'm asking you people for help! [code]<html> <title>Set ship cookie</title> <body> <?php include "dbinfo.inc.php"; if (isset($_POST['submit'])){ $objid = $_POST['objid']; setcookie( 'objid', $objid, time()+60*60*24*30, '/', '*edited*'); echo "<br>$objid"; }else{ echo "The post didn't come through"; } ?> </body> </html>[/code] Ok, and before you ask dbinfo does not output anything. Help would be appreciated Also [code]<?php include "dbinfo.inc.php"; if (isset($_POST['submit'])){ $objid = $_POST['objid']; $success = setcookie( 'objid', $objid); if($success){ echo "succeeded"; }elseif(!$success){ echo "failed"; }else{ echo"hmm"; } setcookie( 'objid', $objid, time()+60*60*24*30, '/', '*edited*'); echo "$objid"; }else{ echo "The post didn't come through"; } ?>[/code] This doesn't work either (Forgot not to output anything to the browser before setting the cookie)