I am having a problem recieving the username and password, i think my html form is fine, and that the problem is in my cgi file.
This is the code that i am using to recieve the username and password from the html form
Code:
$query_string = $ENV{'QUERY_STRING'}; $first = split(/&/, $query_string); ($u_name, $pass) = split(/=/, $first);
Code:
$sth = $dbh->prepare(q{SELECT table1.name, table1.address, usertable.password from table1, usertable where table1.name = usertable.user_name and user.user_name = ?}); $sth->execute($u_name);
I am not sure if the "?" is right in the select statement? I am also unsure about the value $u_name in the brackets, when i enter a sample username in the place of the "?" in the select statement, the result will not print out unless i remove the $u_name from the brackets in the line below.
I would appreciate any help or suggestions, as i have spent many hours working on this and have run out of ideas
Thanks

