I finally created a databse and made a table called members with my 2 members id, password and username.
When I tried to use your script I get these errors:
Warning: session_start() [function.session-start]: open(windows/temp\sess_0160462b3b8778510e3c14357cae7358, O_RDWR) failed: No such file or directory (2) in D:\Program Files\Apache Group\Apache2\htdocs\tests\password.php on line 45
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\Program Files\Apache Group\Apache2\htdocs\tests\password.php:45) in D:\Program Files\Apache Group\Apache2\htdocs\tests\password.php on line 45
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\Program Files\Apache Group\Apache2\htdocs\tests\password.php:45) in D:\Program Files\Apache Group\Apache2\htdocs\tests\password.php on line 45
User Login
User Name
Password
Warning: Unknown(): open(windows/temp\sess_0160462b3b8778510e3c14357cae7358, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (windows/temp) in Unknown on line 0
Do you know why this might be occuring?
The form for logging in still shows up, but when I enter a username and password it just redirects me back to content.php(no variable) which is where I originally called the password.php from. Any suggestions?