Script:
Client's Code
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Simple Log in</title>
</head>
<body link="#800000" vlink="#C0C0C0" alink="#FF0000" text="#000080"
bgcolor="#E7F2F5">
<div style="position: absolute; width: 250px; height: 77px; z-index: 1;
left: 66px; top: 50px" id="layer1">
<form method="POST" action="check.php">
enter name and password
<p><input type="password" name="uid" size="15"><input type="password"
name="pwd" size="15"><input type="submit" value="Submit" name="B1"><input
type="reset" value="Reset" name="B2"></p>
</form>
</div>
</body>
</html>
Server's Code
<?php
$x=$_POST[uid];
$y=$_POST[pwd];
echo "you entered $x and $y <br>";
$name=$x;
$pwd=$y;
if(($name=="manas")&&($pwd=="abc12345"))
{
echo"Logged in $x";
}
else
{
echo "<br>could not log in";
echo "<a href='http://manas3/php/manual/play_seesion/simple_login.htm'>
Try Again </a>";
}
$x="reset";
$y="rest";
?>