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.

37 lines
817 B

  1. #!/usr/local/bin/perl
  2. use CGI ':standard';
  3. print header;
  4. print start_html('A Simple Example'),
  5. h1('A Simple Example'),
  6. start_form,
  7. "What's your name? ",textfield('name'),
  8. p,
  9. "What's the combination?",
  10. p,
  11. checkbox_group(-name=>'words',
  12. -values=>['eenie','meenie','minie','moe'],
  13. -defaults=>['eenie','minie']),
  14. p,
  15. "What's your favorite color? ",
  16. popup_menu(-name=>'color',
  17. -values=>['red','green','blue','chartreuse']),
  18. p,
  19. submit,
  20. end_form,
  21. hr;
  22. if (param()) {
  23. print
  24. "Your name is: ",em(param('name')),
  25. p,
  26. "The keywords are: ",em(join(", ",param('words'))),
  27. p,
  28. "Your favorite color is: ",em(param('color')),
  29. hr;
  30. }
  31. print a({href=>'../cgi_docs.html'},'Go to the documentation');
  32. print end_html;