GET example
I change our first form to submit data to a CGI script:
<form method=get
action=“http://sirah.csit.fsu.edu/cgi-bin/users/dbc/getEg.pl”>
Name: <input type=text name=who size=32> <p>
<input type=submit>
</form>
and define getEg.pl by:
#!/usr/bin/perl
print “Content-type: text/html\n\n” ;
print “<html><body><h1>Hello
$ENV{QUERY_STRING}!</h1></body></html>\n” ;
When I point the browser at the form, enter my name, and submit the form, the page returned to the browser contains the message: