Jump to content

Acidic.Saliva

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by Acidic.Saliva

  1. Yep! That Did It! Thanks! I thought that if you did session_start() again, it would restart it and wipe everything out, but I guess I was wrong.
  2. Hmm... I did just like you said, session_start() before everything and I stored the username. It works fine if I call $_SESSION['username'] on the same page, but when I move the the linked page, it doesn't work. No error message, just doesn't print it out. Is there something I'm supposed to do to enable it on the other page?
  3. lol, I'm kind of a noob, how would I do either of those? EDIT: Oh wait, could I just say like echo "<a href="myphppage.php?username=$username>"?
  4. I know how to handle $_GET and $_POST with HTML forms, but say someone logs in on my site and it shows their name as a greeting "Hello (username here)!", but I also want it to show up on all the other pages as long as they're logged in. How can I keep sending the information to the new page when they click a link?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.