i have made a simple query that will show what user have type in a form. then, displayed it in secong page. why it does not execute?
this is my test code:
form.php
<?php
session_start();
?>
<HTML>
<HEAD>
<TITLE> Testing Form </TITLE>
</HEAD>
<BODY>
<form action="action.php" method="post">
Your name : <input type="text" name="name"><BR>
Your age : <input type="text" name="age"><BR><BR>
<input type="submit" name="submit" value="Submit Form">
</form>
</BODY>
</HTML>
action.php
<?php session_start(); ?>
<HTML>
<HEAD>
<TITLE> Display Form Result </TITLE>
</HEAD>
<BODY>
<?php
echo "<h2>Hi ".$name."</h2>";
echo "<h3>You are ".$age." years old.</h3>";
?>
</BODY>
</HTML>
please help me