Login.html
<html>
<form
method="POST" action="login.php" >
<p>User
Name: <input type="text" name="user"><br>
<p>Password
:<input type="password"><br><br>
<input
type="submit" value="Login"><br>
</form>
</html>
Login.php
<?php
$auth_yes=0;
session_start();
session_register();
#tm=time();
?>
<form
method="GET" action="new.php">
<fieldset>
<legend>Enter
username and password</legend>
<p>Roll_No:   <input
type="text" name="rno"><br>
<p>Name:   <input
type="text" name="nm"><br>
<p>City:   :   <input
type="text" name="ct"><br><br>
<input
type="submit" value=Submit>
</form>
New.php
<?php
$a=$_GET['rno'];
$b=$_GET['nm'];
$c=$_GET['ct'];
session_start();
$newt
= $tm+60;
if($newt
> time())
echo"time
out";
else
{
echo"Roll_No=$a"."<br>";
echo"Name=$b"."<br>";
echo"City=$c"."<br>";
}
session_destroy();
?>