6 Replies - 4020 Views - Last Post: 08 May 2009 - 07:02 AMRate Topic:

I suppose this script should work but it's not and i can't seem to identify the problem. it appears my wamp server cannot retrieve values from the $db_name and $table_name variables. when i make the post it reffers me back to
the login page i.e show_login.html without making any attempt to execute the php script. Please i need help.

As u said i will explain in detail. To start with, i run a WAMP server 2.0 on my system with the following versions: php 5.2.7, mysql 5.1.30, apache 2.2.10.

I saw the login script in a text book on php6. I set up a database name loglist and a table name auth_users with two columns username and password with a value for username and password on mysql server. below is the html login page according to the textbook

since you've named your input fields to "user" and "pass"! Try it again with that simple fix and it should work unless there any more bugs!

Hope it helps!

Btw, please lowercase your HTML code! *Gaaah, going crazy*

kcvontop, on 8 May, 2009 - 12:29 AM, said:

Thank u friend i can't appreciate u enough for your attention.

As u said i will explain in detail. To start with, i run a WAMP server 2.0 on my system with the following versions: php 5.2.7, mysql 5.1.30, apache 2.2.10.

I saw the login script in a text book on php6. I set up a database name loglist and a table name auth_users with two columns username and password with a value for username and password on mysql server. below is the html login page according to the textbook