View Single Post
Old 01-18-2003, 06:16 PM   #1 (permalink)
trevor
Code Monkey
 
Join Date: Jan 2003
Location: Canada
Posts: 91
trevor is on a distinguished road
last problem, I promise

PHP Code:
<?
include("connect.php");

session_start();
session_register(username,password);

$result=mysql_query("select * from users where username='$username' and password='$password'");
$num=mysql_num_rows($result);
if(
$num 1){
  
header("location: failed2.php");
}
?>
It always sends you to failed2.php. login.php likes my password but main.php doesn't. What I dont get is how the $username and $password variable can be passed from one .php file to another.

but anyway that code it straight from sde so it should work.

thanks again,

Trevor
trevor is offline   Reply With Quote