Connecting Tech Pros Worldwide Forums | Help | Site Map

how to set user logon session and validate

xo55ox
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,

I want to find out how do I display the user who logon to the webpage,
such as, Welcome, xxxx! Also how do I validate against my user table
in MySQL database whether the user is an existing user or new user.

Will appreciate any information.

Thanks.

Jedi121
Guest
 
Posts: n/a
#2: Jul 17 '05

re: how to set user logon session and validate


"xo55ox" a écrit le 08/12/2003 :[color=blue]
> Hi,
>
> I want to find out how do I display the user who logon to the webpage,
> such as, Welcome, xxxx! Also how do I validate against my user table
> in MySQL database whether the user is an existing user or new user.
>
> Will appreciate any information.
>
> Thanks.[/color]

You'll need a form for the user to fulfill typically User and Password.
Check this values against your DB values.
If OK use Session or Cookie to store an ID and display the user name.
If not display "Guest" or whatever even an "New user register here"
page :)

--
Have you read the manual?
http://www.php.net/manual/en/

Closed Thread