| 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