if(!isset($PHP_AUTH_USER)):
header("WWW-Authenticate: Basic realm=\"Zeliot.com\"");
header("HTTP/1.0 401 Unauthorized");
$lockout=0;
else:
$lockout=validatelogin(trim($PHP_AUTH_USER),trim($PHP_AUTH_PW));
if ($lockout==1):
$lockout=validatemodule(trim($PHP_AUTH_USER),'admin');
endif;
endif;
something like this is what i use for logins on my site. my validatemodule and validatelogin functions just return weather or not its a valid user off my database and let the program continue if they are. YOu can just do a regular html form and have it post back to the server the user name and password but you will then have to store this information in cookies on the users machine so you can keep track of them and maintain some security.
Amy wrote:
Really cool Magic Role playing website?!?.....I need help with PHP stuff....Also does anyone here know how to make logins for webstites..like ones with database stuff..lol...Im dumb...