No subject

Nate catenate at yahoo.com
Tue Sep 21 15:33:53 CDT 1999


On the Jax.PM jacksonville-pm-list;
Nate <catenate at yahoo.com> wrote -


Good afternoon Jax PM,

Is it just me, or is perl just a lot easier with Linux/Apache?

I just joined this list today, and I hope to learn a lot from it. I'm a
novice perl cgi hacker, just trying to accept data from forms on a web
page.

The web page is a survey made up of a series of questions answered
using radio buttons and text boxes.

The web server is IIS 4.0 (actually "personal web server") running on
NT4 WKS.

The problem is that when I activate the link to a test perl script with
a sample parameter, i.e. /cgi-bin/result.pl?flavor=mint 
and the script is this:

use CGI qw(:cgi);
print header(), start_html("Hello world"), h1("Hello world");
my $favorite = param("flavor");
print p("your favorite flavor is $favorite");
print end_html();

now when I click on it, the browser asks what to do with the file I
want to download (you know the drill - open it or save it ;).
I know the setup is hosed but click on "open it" anyways to see what
will happen, and the server launches a CMD.EXE window with the script
running in it, telling me:
(offline mode: enter name=value pairs on standard input)

Obviously the parameters didn't get passed to the script, since when I
invoke the script from the command line as 
./result.pl flavor=mint
it outputs the full html output.

I know that I have the modules loaded since the script outputs the html
then it gets the parameters properly, I just can't pass them properly.

Any ideas on how to fix this?

(by the way I'm stuck with the NT/IIS combo ;)

Thanks in advance,
Nate 
===
nate    catenate at yahoo.com
[infosec|linux|perl] nut
my infosec favorites -> www.geocities.com/SiliconValley/Byte/9853/
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


The Jacksonville Perl Monger's Group is operated by -
Bill -Sneex- Jones ( sneex at usa.net ),
to whom send all praises, complaints, or comments...




More information about the Jacksonville-pm mailing list