CSE3325: Forms & CGI


In the previous lecture:

In this lecture:


Reference:


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


Have a look at the interface to the Altavista search engine.

(Have a 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):


CSE3325 courseware | CSE3325 lecture notes

©Copyright Alan Dorin 2005