I hv make an html page on which there r 2 fields of username n pw n a login button.For Authentication code I make another file named "check.php".Kindly guide me that hw can I give the refernce of the form objects in this file as I need the values of username n pw in order to check.
mysql_select_db("alauddin", $con);
$name=form1.txtusername;
$password=form1.txtpw;
$result = mysql_query("SELECT username,pw FROM login");
while($row = mysql_fetch_array($result))
{
if($name=$row['username'] && $password=$row['pw'])
echo "You are logged in";
else
echo "Enter again";
}
Its giving error on the following lines as its the form1 in the html file:
$name=form1.txtusername;
$password=form1.txtpw;
I include the file "check.php" in the html file.
Reply soon..Regards,