Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

  1. #!/usr/local/bin/perl
  2. use CGI;
  3. $query = new CGI;
  4. print $query->header;
  5. print $query->start_html('Popup Window');
  6. if (!$query->param) {
  7. print "<H1>Ask your Question</H1>\n";
  8. print $query->startform(-target=>'_new');
  9. print "What's your name? ",$query->textfield('name');
  10. print "<P>What's the combination?<P>",
  11. $query->checkbox_group(-name=>'words',
  12. -values=>['eenie','meenie','minie','moe'],
  13. -defaults=>['eenie','moe']);
  14. print "<P>What's your favorite color? ",
  15. $query->popup_menu(-name=>'color',
  16. -values=>['red','green','blue','chartreuse']),
  17. "<P>";
  18. print $query->submit;
  19. print $query->endform;
  20. } else {
  21. print "<H1>And the Answer is...</H1>\n";
  22. print "Your name is <EM>",$query->param(name),"</EM>\n";
  23. print "<P>The keywords are: <EM>",join(", ",$query->param(words)),"</EM>\n";
  24. print "<P>Your favorite color is <EM>",$query->param(color),"</EM>\n";
  25. }
  26. print qq{<P><A HREF="cgi_docs.html">Go to the documentation</A>};
  27. print $query->end_html;