Re: Re[4]: [PHP] setting request variables

2004-03-04 Thread matthew oatham
result = mysql_query($sql); > mo> if(!$mysql_num_rows($result) > 0){ > mo> $error = 'Error: Invalid password'; > mo> include('login.php'); > mo> exit; > mo> } > mo>//password ok > mo>echo '

Re[4]: [PHP] setting request variables

2004-03-04 Thread Tom Rogers
} mo>//password ok mo>echo 'Welcome '.$_POST['username'].''; mo> }else{ mo> //first pass and $error is still empty mo> include('login.php'); mo> } mo> - Original Message - mo> From: "Tom Rogers" <[

Re: Re[2]: [PHP] setting request variables

2004-03-04 Thread matthew oatham
'login.php'); exit; } //password ok echo 'Welcome '.$_POST['username'].''; }else{ //first pass and $error is still empty include('login.php'); } - Original Message - From: "Tom Rogers" <[EMAIL PROTECTED]>

Re[2]: [PHP] setting request variables

2004-03-03 Thread Tom Rogers
- Original Message - mo> From: "Tom Rogers" <[EMAIL PROTECTED]> mo> To: "matthew oatham" <[EMAIL PROTECTED]> mo> Cc: <[EMAIL PROTECTED]> mo> Sent: Thursday, March 04, 2004 12:24 AM mo> Subject: Re: [PHP] setting request variables >>

Re: [PHP] setting request variables

2004-03-03 Thread matthew oatham
tthew oatham" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 04, 2004 12:24 AM Subject: Re: [PHP] setting request variables > Hi, > > Thursday, March 4, 2004, 9:08:19 AM, you wrote: > mo> Hi, > > mo> I have created a small login system for m

Re: [PHP] setting request variables

2004-03-03 Thread Tom Rogers
Hi, Thursday, March 4, 2004, 9:08:19 AM, you wrote: mo> Hi, mo> I have created a small login system for my website. However mo> if a user logs in incorrectly I want to display a error message mo> currently I use the code mo> echo "You could not be logged in! Either the username and mo> pass

[PHP] setting request variables

2004-03-03 Thread matthew oatham
Hi, I have created a small login system for my website. However if a user logs in incorrectly I want to display a error message currently I use the code echo "You could not be logged in! Either the username and password do not match or you have not validated your membership! Please tr

[PHP] setting request variables

2004-03-03 Thread matthew oatham
Hi, I have created a small login system for my website. However if a user logs in incorrectly I want to display a error message currently I use the code echo "You could not be logged in! Either the username and password do not match or you have not validated your membership! Please tr