1. The HTML file named as “SUBMIT_FORM.HTML” with the following codes are created:
The output of the html form is as follows:
What’s your name? (Then press RETURN)
2. Then, the PHP file named as submit.php with the following codes are created:
echo "Hello, ", $myname;
?>
The output would be Hello, without printing “myname”.
Insert the line below in order to enable the printing of the submitted name:
$myname=$_GET["myname"];
With the modified submit.php, the output becomes Hello, Lawrence.
Wednesday, May 13, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment