<html>
<title>form_authentication_1.htm </title>
<body text="#000080" bgcolor="#F7F0D7">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="211">
<tr>
<td width="209">Please enter your name</td>
</tr>
<tr>
<td width="209">
<form method="POST" action="form_authentication_1.php">
<input type="text" name="user_name" size="20"><br>
<input type='hidden' name='insert_1' id='in_post_1' value='in_post_1' />
<input type="submit" value="Submit" name="B1"></p>
</form>
<p>&nbsp;</td>
</tr>
<tr>
<td width="209">&nbsp;</td>
</tr>
</table>
</body>
</html>

server side coding

<?php
if((!$_POST[user_name])&& (!$_POST[insert_1])){
echo "must enter your name";
header("Location: http://manas8x/php5/test_header/form_authentication_1.htm");
}
?>
<html><title>form_authentication_1.php </title>
<body text="#000080" bgcolor="#F7F0D7">
Welcome your viewing the desired page<br>.
<?php echo"welcome ".$_POST[user_name]; ?>
</body>
</html>

The user will not be able to view the other page unless enters the text