My simple HTML form goes like this
<HTML>
<BODY BGCOLOR = "#FFFFFF">
<H1> A Simple Form </H1>
<FORM ACTION = "process1.php" METHOD = "post">
Enter Your Name:
<INPUT TYPE = "text" NAME = "student"> <BR>
Select Your Grade Level:
<SELECT NAME = "grade">
<OPTION SELECTED > 12
<OPTION> 11
<OPTION> 10
<OPTION> 9
</SELECT> <BR>
<INPUT TYPE="submit" VALUE = "Submit">
<INPUT TYPE="reset" VALUE = "Clear">
</BODY>
</HTML>
and my process1.php goes like this
<HTML>
<BODY BGCOLOR = "#FFFFFF">
<H1> Processing the Form </H1>
<?
print("Hi $student! <BR>"
;
print("You are in grade $grade. <BR>"
;
$graduate = 2001 + (12 - $grade);
print("You will graduate in the year $graduate."
;
?>
</BODY>
</HTML>
When I press submit on my HTML form nothing is displayed on screen..any suggestions..I have installed PHP and some other sample scripts are running fine...could any one explain..
Also could anyone explain how to pass this simple form information to a text file.
regards
MP
<HTML>
<BODY BGCOLOR = "#FFFFFF">
<H1> A Simple Form </H1>
<FORM ACTION = "process1.php" METHOD = "post">
Enter Your Name:
<INPUT TYPE = "text" NAME = "student"> <BR>
Select Your Grade Level:
<SELECT NAME = "grade">
<OPTION SELECTED > 12
<OPTION> 11
<OPTION> 10
<OPTION> 9
</SELECT> <BR>
<INPUT TYPE="submit" VALUE = "Submit">
<INPUT TYPE="reset" VALUE = "Clear">
</BODY>
</HTML>
and my process1.php goes like this
<HTML>
<BODY BGCOLOR = "#FFFFFF">
<H1> Processing the Form </H1>
<?
print("Hi $student! <BR>"

print("You are in grade $grade. <BR>"

$graduate = 2001 + (12 - $grade);
print("You will graduate in the year $graduate."

?>
</BODY>
</HTML>
When I press submit on my HTML form nothing is displayed on screen..any suggestions..I have installed PHP and some other sample scripts are running fine...could any one explain..
Also could anyone explain how to pass this simple form information to a text file.
regards
MP