Difference between revisions of "CSC220 processForm1.php"

From dftwiki3
Jump to: navigation, search
(Created page with '--~~~~ ---- <code><pre> </pre></code> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> Category:CSC220Category:Php')
 
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
<code><pre>
 
<code><pre>
 +
<HTML>
 +
 +
<HEAD>
 +
<TITLE>CSC220 -- processform1.php</TITLE>
 +
<meta http-equiv="Pragma" content="no-cache">
 +
</HEAD>
 +
 +
<BODY>
 +
<?php
 +
 +
//--- 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>
  
  

Latest revision as of 09:04, 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

//--- 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>