Home > Archive > PERL Miscellaneous > July 2006 > Problem with perl script and form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem with perl script and form
|
|
| Songhw@gmail.com 2006-07-28, 6:59 pm |
| Hello,
I am try to run a Perl script from a form. I tested both the form and
the script seperatlly. they are fine. But when I put them together, the
IE was not runing the script but giving me a alert messagebox let to
choose if I will open it or download it. if I choose open, the script
will be run in the dos mode and return back with nothing.
Can someone tell me the steps I have to follow to run my program ?
Thanks
HS
| |
|
|
| Matt Garrish 2006-07-29, 6:58 pm |
|
Songhw@gmail.com wrote:
> Hello,
>
> I am try to run a Perl script from a form. I tested both the form and
> the script seperatlly. they are fine. But when I put them together, the
> IE was not runing the script but giving me a alert messagebox let to
> choose if I will open it or download it. if I choose open, the script
> will be run in the dos mode and return back with nothing.
>
> Can someone tell me the steps I have to follow to run my program ?
>
The first question is have you configured your server to run perl
scripts? If it doesn't know what to do with a .pl file you'll get a
regular download prompt.
The next most likely culprit is that you're trying to send a text/plain
content type to IE. IE likes to do whatever it wants with headers, and
I've found that the text/plain header from a .pl file usually results
in a prompt to save the script to disk. Try switching to text/html and
see if it runs as you expect, or better yet try a better browser like
Firefox.
Matt
|
|
|
|
|