i can't really find a solution to this via surfing...
what i'm trying to do is create one of these "remember my info" things when a user submits their information...
so that after submitting the info to the db it will then setcookies so when they return certain fields will already be filled in...
now...it's my understanding that i must setcookies before anything else...but what i don't understand is how i do this when a user submits info...i'll post some code, but i'm really searching for an explanation...feel free to edit my code however... 🙂
code:
if ($Submit) {
INSERT data...blah, blah...
setcookie("name",$name,time()+3600,"/","www.website.com","");
setcookie("email",$email,time()+3600,"/","www.website.com","");
header('location:ohiyo.php');
}