J
joe
I am learning Javascript by running Apache on my computer. The following question
does not have Javascript because I've stripped it from a larger project.
I have the following simple index.html:
<html>
<p>Test</p>
<p>
<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">
</form>
</html>
and the test.pl Perl file is even simpler:
#!/usr/bin/perl
open COLOURS, ">colours.txt";
print COLOURS "My favourite colour is blue\n";
close COLOURS;
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
being created.
I have set up a Perl interpreter. When I run "perl test.pl" from DOS command
prompt I get what I expect.
What gives?
does not have Javascript because I've stripped it from a larger project.
I have the following simple index.html:
<html>
<p>Test</p>
<p>
<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">
</form>
</html>
and the test.pl Perl file is even simpler:
#!/usr/bin/perl
open COLOURS, ">colours.txt";
print COLOURS "My favourite colour is blue\n";
close COLOURS;
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
being created.
I have set up a Perl interpreter. When I run "perl test.pl" from DOS command
prompt I get what I expect.
What gives?