Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 33 lines (27 sloc) 1.024 kb
use CGI;
$query = new CGI;
print $query->header;
print $query->start_html('Popup Window');
if (!$query->param) {
print "<H1>Ask your Question</H1>\n";
print $query->start_form(-target=>'_new');
print "What's your name? ",$query->textfield('name');
print "<P>What's the combination?<P>",
print "<P>What's your favorite color? ",
print $query->submit;
print $query->endform;
} else {
print "<H1>And the Answer is...</H1>\n";
print "Your name is <EM>",$query->param(name),"</EM>\n";
print "<P>The keywords are: <EM>",join(", ",$query->param(words)),"</EM>\n";
print "<P>Your favorite color is <EM>",$query->param(color),"</EM>\n";
print qq{<P><A HREF="cgi_docs.html">Go to the documentation</A>};
print $query->end_html;
Jump to Line
Something went wrong with that request. Please try again.