SalientAnimal Posted January 10, 2014 Share Posted January 10, 2014 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 Quote Link to comment Share on other sites More sharing options...
SalientAnimal Posted January 10, 2014 Author Share Posted January 10, 2014 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);"/> Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted January 10, 2014 Share Posted January 10, 2014 since the form is completely dependent upon the javascript for its submission, do you have the js folder and the two files in it, on your system? did/does the original unmodified script work? Quote Link to comment Share on other sites More sharing options...
SalientAnimal Posted January 11, 2014 Author Share Posted January 11, 2014 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. Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted January 11, 2014 Share Posted January 11, 2014 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? Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted January 11, 2014 Share Posted January 11, 2014 just an fyi - i downloaded the offending script, put in my database connection credentials, ran the .sql script to create the database tables, and both registration and login work as expected. Quote Link to comment Share on other sites More sharing options...
Solution SalientAnimal Posted January 14, 2014 Author Solution Share Posted January 14, 2014 Managed to get it working. To be honest, I can't really tell you what the error was in the first place, but everything seems to be working fine now. Quote Link to comment 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.