mnielsen Posted June 19, 2008 Share Posted June 19, 2008 Hi, I have written my login script but it wont get passed the first 'if' statement. I've tried a few ways to get it working but same result. I end back up at my index page with nothing. The file is attached. Here's the first if statement, please also take a look at the source code too. if(strlenCheck($email, $password) == 1 || 2){ header("Location: /index.php?LoginError=Required"); } Thanks in advance for any help. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Stephen Posted June 19, 2008 Share Posted June 19, 2008 What's strlenCheck? Why don't you try: if (strlen($email)>1 && strlen($password)>2) { header("Location: /index.php?LoginError=Required"); } Quote Link to comment Share on other sites More sharing options...
samshel Posted June 19, 2008 Share Posted June 19, 2008 if(strlenCheck($email, $password) == 1 || strlenCheck($email, $password) == 2){ header("Location: /index.php?LoginError=Required"); } Quote Link to comment Share on other sites More sharing options...
mnielsen Posted June 19, 2008 Author Share Posted June 19, 2008 kk, thanks I got a little further now but something else isn't quiet right. Dont go anywhere I'll need you help again =] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.