I have a login form in my project and i want to know the code how to show the other forms only when the login is successful. The code below is the login code.
<?php
extract($_POST);
$uname=$_POST['user'];
$pwd=$_POST['password'];
$con=mysql_connect('localhost','root','')
or
die('could not connect:'.mysql_error());
mysql_select_db("priya",$con);
$result=mysql_query("select * from user
where user='$user' and password='$password'");
if(($row=mysql_fetch_array($result))!=0)
{
$msg="Login successfu!!!";
}
else
{
$msg="Access Denied";
}
echo $msg;
mysql_close($con);
?>