FIT3084: Forms & CGI


In the previous lecture:

In this lecture:


What are scripts?




Common Gateway Interface (CGI)



A Few Examples


Identifying Requests to Execute Scripts


Passing 'Hard Coded' Parameters to Scripts


Passing User - Specified Parameters to Scripts

In your own time:

Have a look at the interface to the Altavista search engine. Look at a query in the browser's URL entry box.



Front End to Named Parameter List Scripts

Secret agent name:

Which secret device do you want for your mission?



How many of this secret device did you destroy last mission?

Do you promise not to destroy any more of these devices? Yes No

Secret agent password:



Here's some of the HTML...

<FORM ACTION="/cgi-bin/order_toys" METHOD=POST >

<P>Secret Agent Name:
< INPUT TYPE="text" NAME="name">

...

<INPUT TYPE="submit" VALUE="Transmit Order to HQ">
< INPUT TYPE="reset" VALUE="Eat Order">

< /FORM>




Remember Clickable Image Maps?




CGI Magic



This lecture's key point(s):


Courseware | Lecture notes

©Copyright Alan Dorin 2009