Jump to content

Issues with login system


ProgrammerHelp

Recommended Posts

My sign in code called activation is the script called activation.php. my login page is login.php and my profile page is the landing page once a successful login in attempt is made. the activation.php is the issue as i us the form in sign.php to login but the activation.php doesn't redirect me to the sign in page once a fail attempt is made or it doesn't redirect me to my profile page once a successful login in attempt is made.


The following link has the code:https://gist.github.com/confusedstudent21/410f04991691f485e6c28d1e4050e13a


where is it going wrong?


Link to comment
Share on other sites

The code is badly fudged up.
 
You have a random mixture of mysqli_* calls and mysql_* calls (copy-and-paste, I guess), you overwrite your own Location headers because you never stop the script. And the plaintext passwords are hopefully just a bad joke.

 

I'm fairly sure the code does nothing but fill the PHP error log with messages (which you should check, by the way). You should scrap it, learn PDO and start over.

Link to comment
Share on other sites

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.