Server Side Scripting
Key points to understand: (pages 199-212 of the A2 Textbook)
- CGI stands for 'Common Gateway Interface' and sits between the Web server and Web Server Extensions
- The 'request - response' system
- How forms work on a web page, with name-value pairs identifying the data.
- The distinction between the 'GET' and 'POST' mechanisms
Example examination questions (.doc)
Examples
Note: To make these examples work from a local computer, you'll need to give the full web address of the scripts:
http:\\www.starteractivity.com\test\scriptname.php
http:\\www.starteractivity.com\test\scriptname.php
Client Site GET - HTML Code
<html> |
Server Side GET - HTML and PHP
<html><body> |
Client Side POST - HTML Code
<html> |
Server Side POST - HTML and CSS
<html><body> |