POST example
Change the form as follows:
<form method=post
action=“http://sirah.csit.fsu.edu/cgi-bin/users/dbc/postEg.pl”>
Name: <input type=text name=who size=32> <p>
<input type=submit>
</form>
and define postEg.pl by:
#!/usr/bin/perl
print “Content-type: text/html\n\n” ;
for($i = 0 ; $i < $ENV{CONTENT_LENGTH} ; $i++) {
$in .= getc ;
}
print “<html><body><h1>Hello $i!</h1></body></html>\n” ;