Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.