Forum Moderators: coopster

Message Too Old, No Replies

Login Script Error

         

Jassi

9:58 pm on Dec 15, 2007 (gmt 0)

10+ Year Member



Hi guys I'm new to the forum, joined in order to gain knowledge of PHP and other scripts. I've been looking at some user login scripts and came across the one below:

[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?

eelixduppy

6:29 pm on Dec 18, 2007 (gmt 0)



Hello and Welcome to WebmasterWorld!

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.