Page 1 of 1

Hello and HELP!!! :C

Posted: Tue Feb 07, 2006 6:52 pm
by No0b
Hello everyone,
this is my first time on these forums and so I just wanted to say hi to all.

Help!
first of all, I'm a noob... :( And as a noob i need help. the reason i sign on this forum is because I wanted to be around alot of php programers and cuz I'm need ppls help eh heh heh, lol, oh ho ho. :o So i hope I can explain my problem properly if I don't please ask me questions if you don't unders stand.

The problem is pretty simple, like I said I'm a noob... :( You see what I'm doing with my php knowledge is reading this book called php 5 fast&easy web development it's an ok book author is Julie Meloni. I'm trying to be as detialed as i can cuz i think that's what's best.
So my problem is a login script. What i'm trying to do with it is make a show_login.html or .php and when you submit it it goes over to the back end script do_authuser.php and it takes it and checks if the input username and password is correct and if so it authorizes the user and starts a session i guess so that i can have superglobals $_SESSION[username] and $_SESSION[password] equal the username input and the password so that it's displayed up at the right of the page saying "Hello! SESSION[username]" example "Hello! DudeManDude".
I got all the script done most of it just wondering something.

What does the session_start function do? I think it starts a session and then you can make these variables $_SESSION[] but are thoughs super super where they work everywhere in the whole website?

What I basicly need is the ability to create a super global variable that has the value of the username when you log in and i also need the code that checks if the user has logged in.

These are my questions if you can understand what i'm asking.

Please help me all is appreciated.

Thanks for reading and thanks for your time.

Posted: Tue Feb 07, 2006 7:01 pm
by nickman013
Hey, welcome to the forums!

To look up functions go to http://www.php.net , they got them all ( of course).
I had the same question, read this thread. It will tell you how to do what you want to.

:arrow: viewtopic.php?t=43215&highlight=

Posted: Tue Feb 07, 2006 7:18 pm
by feyd
And please work on creating more descriptive thread titles. :)