Showing posts with label Exercise 07. Show all posts
Showing posts with label Exercise 07. Show all posts

Wednesday, May 13, 2009

Exercise 07

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.