...

View Full Version : how would i set a cookie with their username on it???



stoodder
03-16-2003, 12:50 AM
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

stoodder
03-16-2003, 02:28 AM
lol nevermind guys.. i forgot to refresh the page:rolleyes: lol im stuid oh well thanx for all of those peeps who helped especially the little peeps

Nightfire
03-16-2003, 04:03 AM
don't ya just love it when that happens? :p

The usual error you'll see ppl in this area is ppl asking why things aren't showing or they've forgot to save the work or forgot to upload the present work :p



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum