Hey, so i'm trying to make a double login page, 2 users put there user and password there and login at the same time, the problem is that it always says that the passwords are wrong...

I think my problem is connecting with the MySQL database, because i can't create an account from the site, only by going to mysql admin page.

I uploaded the project here so you can test it yourself. i'm using sessions.

http://rapidshare.com/files/385391608/php_project.rar.html

In the form (index.php) you use "user1" and "password1". But in login.php you start to use "user1_login".
To make this work, first change references so they are all the same. If you use "user1" in the form, keep using "user1" in the page(s) after that form.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.