#!/usr/local/bin/perl use CGI; $query = new CGI; print $query->header; print $query->start_html('Popup Window'); if (!$query->param) { print "
What's the combination?
", $query->checkbox_group(-name=>'words', -values=>['eenie','meenie','minie','moe'], -defaults=>['eenie','moe']); print "
What's your favorite color? ", $query->popup_menu(-name=>'color', -values=>['red','green','blue','chartreuse']), "
"; print $query->submit; print $query->endform; } else { print "
The keywords are: ",join(", ",$query->param(words)),"\n"; print "
Your favorite color is ",$query->param(color),"\n"; } print qq{
Go to the documentation}; print $query->end_html;