Forum Moderators: coopster
[evolt.org ]
I've uploaded all files to my server which is running:
PHP - 4.4.7
MySQL - 5.0.45
When I visit main.php I get the page requiring login or sign up. Once I sign up with a test user, and click Join. I'm presented with the same page refreshed rather then "your information has been added to the database".
I've checked the MySQL database and the user is added, so I've tried to go back to main.php to sign in. But again it refreshes and presents the login box, rather then saying I've logged in.
I haven't pasted any of the PHP script in as its the same as the one that's been linked to above.
Can anyone offer me any advise?
The script looks like it should be working at a quick glance, although I did not try it out for myself. The reason why the script would not be working correctly is because the value of
$_SESSION['regresult'] is not being set to true so that it can display the correct page. Try echoing the value of this session variable out to see if and why it may not be set to true when it should be. If you copied the code directly, though, I don't see why it would have any problems.