PerceptiveJohn has asked for the wisdom of the Perl Monks concerning the following question:
Problem: When we run form via localhost, we hit submit and the browser comes back with Page Not Found. If we take out the -w on line 1 and comment out some of the lines, the script will execute (but obviously the $Value will not display as it has been removed). Is Sambar an acceptable server?( We run Windows-XP Pro) Or should we use another Server for localhost? Here's the modified script that does work:#!C:\perl\bin\perl -w # Script: form1test.pl works with form1test.html use strict; use CGI ':standard'; my $value; $value = param('yourname'); print "content-type: text/html\n\n"; print "The name you entered is $value";
Thank you in advance. John#!C:\perl\bin\perl -w # Script: form1test.pl works with form1test.html #use strict; #use CGI ':standard'; #my $value; #$value = param('yourname'); print "content-type: text/html\n\n"; print "Your Name will display here";
2006-07-07 Retitled by Corion, as per Monastery guidelines
Original title: 'New To Perl'
|
|---|