Hi All,
As you can see I've finally got my signup.php page working, I want to have a login.php page.
I've looked around hotscripts ect for a script but am not having any luck. I guess it will go something like this
this is way wrong but does anyone have a basic code that will help me??PHP Code:<?php
mysql_connect (localhost, user, password);
mysql_select_db (nz);
$qry = mysql_query("SELECT user_name, user_password FROM DB_Users");
$arr = mysql_fetch_array($qry);
if ($_POST['action'] == 'save') {
if($_POST['user_name'] == $_POST ['user_name']){
\\ set cookie information
}
}else{
echo "Your passwords don't match.";
}
} else {
?>




Reply With Quote