annotate cgi-bin/simple-ajax-example.cgi @ 0:0d795f02a8bb tip

initial committ. what was I thinking?
author Robert McIntyre <rlm@mit.edu>
date Mon, 27 Sep 2010 16:57:26 -0400
parents
children
rev   line source
rlm@0 1 #!/usr/bin/perl -w
rlm@0 2 use CGI;
rlm@0 3
rlm@0 4 $query = new CGI;
rlm@0 5
rlm@0 6 $secretword = $query->param('w');
rlm@0 7 $remotehost = $query->remote_host();
rlm@0 8
rlm@0 9 print $query->header;
rlm@0 10 print "<p>The secret word is <b>$secretword</b> and your IP is <b>$remotehost</b>.</p>";