Server-side Scripting using ASP and PHP

Concept
Send Text/HTML to Browser  response.write   echo 
Loop Though Font Sizes & Send to Browser   do...loop   while loop 
Form Variables - Using POST  request.form("FieldName")   $_POST['FieldName'] 
Form Variables - Using GET  request.querystring("FieldName")   $_GET['FieldName'] 
Connect to an Access Database (DSN-Less)  SELECT * FROM AddressBook   SELECT * FROM AddressBook 
Add Records in Access Database  3 different pages   3 different pages 
Edit Records in Access Database  3 different pages   3 different pages 
Hit Counter  create filesystemobject   fopen,fread,fwrite,fclose 
NOTE: The following examples are not finished. If anyone (who is not behind on assignments) would like to earn extra points by writing the code for one or more of the examples below, let me know and we can discuss it.
Session Variables  SET: session.contents("SesVar")=value
 GET: VariableName = session("SesVar") 
 --- 
Cookies  ---   --- 
Server Variables  ---   --- 
Redirect  ---   --- 
Send Email  ---   --- 
File Upload  ---   --- 
Arrays  ArrayName=array(val1,val2,etc) 
 response.write ArrayName(1) 
 $ArrayName=array(val1,val2,etc); 
 echo $ArrayName[1]; 
Define Functions  function FunctionName(arguments)
   code
 end function 
 function FunctionName(arguments) { 
   code;
   return $variable;
 } 
Call Function & Print Results  variable=FunctionName(arguments)
 response.write variable 
 FunctionName(arguments);
 echo $variable; 
Include Files  <!-- #include File=TrackPgs.asp -->   include("TrackPgs.asp"); 
Topic  ---   --- 
Topic  ---   --- 
Topic  ---   --- 
Topic  ---   --- 
Topic  ---   --- 
Over 700 built in PHP functions at http://www.php.net/quickref.php
ASP				PHP
like vb				like JavaScript or C++
<>				!=
var				$var
code				code;
'comment			//comment or /* lots of comments */
create instance of an object	call a built in function
var=1				var=1
if var=1 then			if var==1 then
document.write str$		echo str$
var(3)				var[3]
response.redirect("URL")	header("Location: URL"); 
request.form("var")		$_POST['var']
request.querystring("var")	$_GET['var']
& to concatenate strings	.
<% code %>			
select case                     switch