Jump to content

Secure Login Using PHP & MySQL


SalientAnimal
Go to solution Solved by SalientAnimal,

Recommended Posts

Hi All,

 

I have a login / registration script that doesn't seem to be functioning. Linking between pages is working perfectly, or at least so it seems, but when clicking on any of the "submit" buttons (Login / Register) nothing seems to happen.

 

Can anyone help me out? I havea ttached the files.

register_success.php

login.php

register.php

process_login.php

functions.php

Link to comment
Share on other sites

Just wanted to include the original source code I used for creating my login:

 

http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL.

 

as mentioned earlier I have only made changes to the pages that I have uploaded. i.e using the username to login rather than the email address as specified in the tutorial.

 

It almost seems as if this section of the code isn't executing for some reason:

<input type="button" 
value="Login" 
onclick="formhash(this.form, this.form.password);"/> 
Link to comment
Share on other sites

I tried using the script as is and I was still not getting any functionality from it. However, another forum user used the same script from the source site and claims that it is working for them. But when I tried to ask him if he had made any adjustments to the script etc, he accused me of hijacking his thread and was not helpful at all.

 

I have the files in the js folder yes.

Link to comment
Share on other sites

another forum user used the same script from the source site and claims that it is working for them

 

 

ummm. no he didn't. go back and read the title and first post in that thread.

 

 

the posts you made in that other thread have been removed, because you did hijack it. that other thread isn't someone USING the same code. it's someone asking for opinions about that code, before he starts to write his own login script.

 

what have you done to troubleshoot what your code is doing in your browser and on your server? do you have javascript turned on in your browser? are you requesting the form page using its URL on your web server so that the php code would even be executed?

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.