troubleshooting Question

My varibales from html are not passed to oerl

Avatar of MatthewF
MatthewFFlag for Afghanistan asked on
Perl
9 Comments1 Solution263 ViewsLast Modified:


use CGI;
$cgi = CGI->new;
%FORM = $cgi->Vars;

$host_file=$FORM{'hostfile'};
$day=$FORM{'dr_day'};
$start_hr=$FORM{'dr_start_hr'};
When I use this the html returns a blank page and the perl is not excuted.  However, when I hard code the varaible as below, the html return a completed message the perl runs



$host_file = "hosts.both";
$day  = "2";
$start_hr  = "03";
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros