I'm having a bit of a problem with a php validation script for my login form on my webiste.
Im sure the problem may come as simple to some of you but ive been banging my head for a few hours on it and just cant figure it out. Help would be appreciated :-)
The login and validation work perfectly on my localhost. However, when i go to test on my remote server the validation gets stuck on the login_do page and when it should, infact, redirect me back to the page where the form is and tell me the outcome of the process. As in, were there any errors or was the registration sucessfull .
If it helps you can go on to www.skillsden.net/register_page.php and type in a load of gibberish in the username and login fields and see for yourself.
The errors are then returned on the page where the form is - for more usability via $_GET. Code is below:
<?php
if(isset($_GET['status'])) { if ($_GET['status'] == "EmailActivation") { echo "<span class='error'> You have not yet activated your account</span>"; } if ($_GET['status'] == "IncorrectPasswordUsername") { echo "<span class='error'> Password or username is incorrect</span>"; } if ($_GET['status'] == "NoSuchUser") { echo "<span class='error'>Sorry, SkillsDen couldnt find you!</span>"; }
if ($_GET['status'] == "NoInfoGiven") { echo "<span class='error'>Please enter you login details!</span>"; }
I'm having a bit of a problem with a php validation script for my login form on my webiste.
Im sure the problem may come as simple to some of you but ive been banging my head for a few hours on it and just cant figure it out. Help would be appreciated :-)
The login and validation work perfectly on my localhost. However, when i go to test on my remote server the validation gets stuck on the login_do page and when it should, infact, redirect me back to the page where the form is and tell me the outcome of the process. As in, were there any errors or was the registration sucessfull .
If it helps you can go on to www.skillsden.net/register_page.php and type in a load of gibberish in the username and login fields and see for yourself.
So, i have the following form:
Which links to login_do where simple validation is made:
The errors are then returned on the page where the form is - for more usability via $_GET. Code is below:
[/code]