Jump to content

Login script problem, check my code.


hiskie

Recommended Posts

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]

Link to comment
https://forums.phpfreaks.com/topic/239747-login-script-problem-check-my-code/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.