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] Link to comment https://forums.phpfreaks.com/topic/110873-solved-help-serious/ 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"); } Link to comment https://forums.phpfreaks.com/topic/110873-solved-help-serious/#findComment-568850 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"); } Link to comment https://forums.phpfreaks.com/topic/110873-solved-help-serious/#findComment-568851 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 =] Link to comment https://forums.phpfreaks.com/topic/110873-solved-help-serious/#findComment-568860 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.