Well this question is two fold.
First of all, Im using Cookies to remember values set in forms (i.e usernames/passwords), so that they dont get lost if there is an error detected.
Is this the correct/ most widely used method? Is there a better way?
Second, if it is the best way, Im having a problem where Im setting the cookies in the file which the form is pointed to. The cookies are made, no problem (I can check in Firefox). But for some reason on my pages when i try to echo them, they fail to do so. Example code:
//The php submit visual page
<form action="checker.php" method="post">
<input type="text" name="email" value="<?echo $_COOKIE["email"];?>" />
</form>
//checker.php
<?php
$email = $_POST['email'];
setcookie ("email", $email, time() + 1000);
?>
And yes, the names are the same. Ive checked a million times. Is there some sort of trim/whitespace error going on here?
NOTE: Cookies do work on my server, as they work perfectly in another voting script of mine.
Thanks for the help.
hyperActive