hiskie Posted June 18, 2011 Share Posted June 18, 2011 Hi guys ! Well, i'm kind of new to PHP, i got into it like 3 months ago and i still have problems understanding some things. I'm good at design server side kinda beats me. So, i wrote a php oop login script with registration option, the problem is that i don't get any error, ( i do have php.ini well set ) and is weird. The login part works well, but when i try to register a new account nothing happens. Could you guys take a look at my code ? I wrote this for a simple web app, haven't concentrated yet on design so don't judge . I can't upload an archive so... i uploaded below the essential files, the Mysql Class, Membership Class, Security Class, and the login.php file. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/239747-login-script-problem-check-my-code/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 18, 2011 Share Posted June 18, 2011 One of the tests in the following is probably failing, so your method returns a false value - if(!$Security->valid_un($un) || !$Security->valid_pwd($pwd) || !$Security->valid_email($email) || $pwd != $pwd2 || !$Security->valid_string($question) || !$Security->valid_string($answer) ) When you echo a false value, nothing will be displayed. You should provide a way of getting and displaying exactly which test(s) is(are) failing. Quote Link to comment https://forums.phpfreaks.com/topic/239747-login-script-problem-check-my-code/#findComment-1231592 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.