any idea why this wont set the cookie?
<?if(isset($submit)){
setcookie('postname', $newname, time()*36);
}
echo "$postname";?>
<form method="POST" action="">
<p>Settings:</p>
Post Name: <input type="text" name="newname" size="20" value="<?echo $postname;?>"></p>
<p> </p>
<p><input type="submit" value="Submit" name="submit"><input type="reset" value="Reset" name="B2"></p>
</form>