<INPUT TYPE="TEXT" NAME="Name" MAXLENGTH="64" SIZE="20">
name=Phil+Scott&sex=male&occupation=Ace+Lecturer
GET
method is recommended for submission of form
data if the submission of the form does not have side
effects. What does this mean? What is the alternative?
http://altavista.yellowpages.com.au/cgi-bin/query?locale=au&q=%22phil+scott%22+bendigo&search=Search
<FORM METHOD=>
used to generate
it was specified as GET
or POST
?
GET
method obtain
data from a form?
METHOD=POST
,
explain how the browser sends the form information (or
QUERY_STRING
) to the Web
server. How does the CGI program access the information in this case?
.exe
file? At least
two answers required here!
FORM
was given.
If you'd prefer, here's a copy
- save the page as "source" and you can modify it and put it in your own
public_html
directory with a suitable name. This
CGI program (written in Perl)
can be used to process the FORM
data. You'll also need the file
common.pl, which is a set of
extra Perl functions which are useful in handling CGI data. Put it all together
and make it work.