CGI module example
Change the form as follows:
<form method=post
action=“http://sirah.csit.fsu.edu/cgi-bin/users/dbc/CGIEg.pl”>
Name: <input type=text name=who size=32> <p>
<input type=submit>
</form>
and define CGIEg.pl by:
#!/usr/bin/perl
use CGI qw( :standard) ;
$name = param(“who”) ;
print “Content-type: text/html\n\n” ;
print “<html><body><h1>Hello $name!</h1></body></html>\n” ;
Now the browser gets a more friendly message like: