stoodder
03-15-2003, 11:50 PM
well okay some of you might be familiar with my login thing i had problems with.. ive got that fixed thanx to nightfire but now i was wondering how cani have it so it like sets their user name onto a cookie or like make it tell that they are logged in so when they view the members page it says welcome *their username*
all i know is you need to do something like
setcookie(sgusername, $_POST['Name'], time()(3600 * 24));
the $_POST['name'] come from my login field that has you type your username in.. but when i say echo"$sgusername"; it doesnt want to wark... any suggestions??? i mean there are no errors it just does not show anything
all i know is you need to do something like
setcookie(sgusername, $_POST['Name'], time()(3600 * 24));
the $_POST['name'] come from my login field that has you type your username in.. but when i say echo"$sgusername"; it doesnt want to wark... any suggestions??? i mean there are no errors it just does not show anything