Difference between revisions of "CSC220 processForm1.php"
Line 11: | Line 11: | ||
<BODY> | <BODY> | ||
− | + | <?php | |
print "<table width=\"50%\"><tr bgcolor=\"\#cc99cc\"><td><pre>\$_REQUEST = "; | print "<table width=\"50%\"><tr bgcolor=\"\#cc99cc\"><td><pre>\$_REQUEST = "; | ||
print_r( $_REQUEST ); | print_r( $_REQUEST ); | ||
Line 25: | Line 25: | ||
print "occupation = $occu<br>\n"; | print "occupation = $occu<br>\n"; | ||
− | ? | + | ?> |
<P> | <P> |
Revision as of 08:59, 22 September 2010
--D. Thiebaut 12:55, 22 September 2010 (UTC)
<HTML>
<HEAD>
<TITLE>CSC220 -- processform1.php</TITLE>
<meta http-equiv="Pragma" content="no-cache">
</HEAD>
<BODY>
<?php
print "<table width=\"50%\"><tr bgcolor=\"\#cc99cc\"><td><pre>\$_REQUEST = ";
print_r( $_REQUEST );
print "
</td></tr></table><P>\n";
//--- get the form parameters ---
$name = $_REQUEST['name'];
$age = $_REQUEST['age'];
$occu = $_REQUEST['occupation'];
print "name = $name
\n";
print "age = $age
\n";
print "occupation = $occu
\n";
?>
<P>
</BODY>
</HTML>
</pre></code>