Hello, I posted this in the mysql forum and was hold that it was an html question. I don't think it is. But hopefully you can help me.
Below is the code I used in a program;
mysql_select_db("mylogin",$conn) or die("Could not select database"
;
$sql = "select userID from logins where userID='$userID' and passID = '$passID'";
$result=mysql_query($sql);
if (mysql_num_rows($result)!=0)
{
header('location:menusm.php?userID='.$userID);
This code works fine. I authenicates the users ID and password. But I want it to pass a varible from another field, 'nickname', instead. Below is the commabd I used on the next page for now.
print $userID;
If there a way that this can be done without the user typing it in like the userID field?
Any assistance will be helpful
Thanks
KJ
Below is the code I used in a program;
mysql_select_db("mylogin",$conn) or die("Could not select database"

$sql = "select userID from logins where userID='$userID' and passID = '$passID'";
$result=mysql_query($sql);
if (mysql_num_rows($result)!=0)
{
header('location:menusm.php?userID='.$userID);
This code works fine. I authenicates the users ID and password. But I want it to pass a varible from another field, 'nickname', instead. Below is the commabd I used on the next page for now.
print $userID;
If there a way that this can be done without the user typing it in like the userID field?
Any assistance will be helpful
Thanks
KJ