Hi,
Please,
Please use
CGI in your cgi scripts. You're parsing the query string yourself, which is laying yourself open to all manner of security holes, plus maintainability nightmares.
Also, you'd be well advised to
use warnings and
use strict, devices to save your sanity while coding
In particular, please checkout
Ovid's CGI course, -- lesson two looks useful for you.
Update:Found the link I was looking for:
use CGI or die;
Here's an example form that might do something similar, without the df stuff: (forgive the dodgy formatting)
#!/usr/bin/perl -w
use strict;
use CGI qw(:standard);
print header();
print start_html(-title=>"Results");
print start_form;
print popup_menu(-name=>"howreach",
-values=>["0", "1", "2"],
-labels=>{"0" => "Informed by prophet",
"1" => "Instructed by dog",
"2" => "Google, baby",} );
print submit(-label=>"Go");
print end_form;
print end_html;
Cheers
davis
Is this going out live?
No, Homer, very few cartoons are broadcast live - it's a terrible strain on the animator's wrist