I have the following simple index.html:
<form action="http://127.0.0.1/test.pl" method="POST">
<input type="text" name="textfield" value="Hi!">
<input type="submit" name="Submit" value="Submit">
and the test.pl Perl file is even simpler:
open COLOURS, ">colours.txt";
print COLOURS "My favourite colour is blue\n";
When I open the IE and go to http://127.0.0.1 I get the test form above. But
when I press the Submit button I get Save/Open dialog instead of colours.txt
I have set up a Perl interpreter. When I run "perl test.pl" from DOS command
prompt I get what I expect.
Re: Apache question
> I have set up a Perl interpreter. When I run "perl test.pl" from DOS command
> prompt I get what I expect.
You will also have to add a Perl script handler to the httpd.conf for
the script to be correclty interpreted.
You should consult the web or one of the many Apache-related newsgroups
Re: [OT] Apache question
silly to you?
I have no knowledge of Perl or of the Apache webserver, but if I would
have to take a guess it is that an incorrect mime-type is returned for
the text file in your http header.
|All times are GMT. The time now is 09:08 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.