Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Location
    Milwaukee, Wisconsin
    Posts
    123
    Thanks
    1
    Thanked 0 Times in 0 Posts

    how would i set a cookie with their username on it???

    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

  • #2
    Regular Coder
    Join Date
    Oct 2002
    Location
    Milwaukee, Wisconsin
    Posts
    123
    Thanks
    1
    Thanked 0 Times in 0 Posts
    lol nevermind guys.. i forgot to refresh the page lol im stuid oh well thanx for all of those peeps who helped especially the little peeps

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    don't ya just love it when that happens?

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •