Difference between revisions of "CSC220 processForm1.php"

From dftwiki3
Jump to: navigation, search
Line 12: Line 12:
 
<BODY>
 
<BODY>
 
&lt;?php
 
&lt;?php
print "&lt;table width=\"50%\"><tr bgcolor=\"\#cc99cc\"><td><pre>\$_REQUEST = ";
+
print "&lt;table width=\"50%\"><tr bgcolor=\"\#cc99cc\"><td>&lt;pre>\$_REQUEST = ";
 
print_r( $_REQUEST );
 
print_r( $_REQUEST );
print "</pre></td></tr></table><P><P>\n";
+
print "&lt;/pre></td></tr></table><P><P>\n";
  
 
//--- get the form parameters ---
 
//--- get the form parameters ---

Revision as of 09:00, 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 "</pre></td></tr></table><P><P>\n";

//--- get the form parameters ---
$name = $_REQUEST['name'];
$age  = $_REQUEST['age'];
$occu = $_REQUEST['occupation'];

print "name = $name<br>\n";
print "age = $age<br>\n";
print "occupation = $occu<br>\n";

?>

<P>
</BODY>
</HTML>