Ask a Question related to PERL Beginners, Design and Development.
-
Jan Eden #1
Running Perl CGI from Windows
Hi all,
I hope this is not too off-topic, since I hesitate to subscribe to yet another list...
I wrote a very simple CGI script to read data from an HTML form like this:
my $q = new CGI;
my $name = $q->param('name');
my $message = $q->param('message');
my $email = $q->param('email');
Later, the script opens a pipe to sendmail and prints a message into the pipe. It works fine when I tested it on my machine (Mac OS X). So far, so good.
But accessing the script from a Windows machine gives me the prepared errormessage. From the log I can see that all parameter values end up in the $name variable, along with the names of the second and third parameter. So the value of $name is:
John Doe email=john@doe.com message=This is the message
Note that the first parameter's name does not appear.
I suspect the problem has to do with line endings (\r vs \n), but I cannot figure out at which point of the process line endings could matter.
Any ideas?
TIA,
Jan
--
There are 10 kinds of people: those who understand binary, and those who don't
Jan Eden Guest
-
running sql scripts from perl script
I am not sure if this probleem is primarily perl or MySQL, so I'll try here first. With any luck, there is someone else here who uses perl to run... -
Off Topic: Active Perl Native Windows / cygwin perl
I have both activestate windows native perl installed and the default cygwin perl. How can I have the cygwin shell use the windows perl rather... -
perl not running correctly
Scott Blankenship wrote: Nothing is wrong with Perl, but unlike in MSDOS ".", isn't usually if the $PATH. You have to reference the file with... -
Running a Perl Script in ASP.NET
Hello, i want to create an active webpage that displays the status of users quotas on a volume of a server. I installed IIS on this server and... -
running UNIX with perl
Dear Gurus, I got stuck at the following. I've tried running a UNIX command in my Perl CGI-script, but it doesn't work the way I expected it to.... -
Jan Eden #2
Re: Running Perl CGI from Windows
Hi Wolf,
wolf blaum wrote:
Like this:>For Quality purpouses, Jan Eden 's mail on Friday 30 January 2004
>20:01 may have been monitored or recorded as:>Hi ...>>Hi all,>>>But accessing the script from a Windows machine gives me the
>>prepared error message. From the log I can see that all parameter
>>values end up in the $name variable, along with the names of the
>>second and third parameter. So the value of $name is:
>>
>>John Doe email=john@doe.com message=This is the message
>>
>>Note that the first parameter's name does not appear.
>What does your <form action=..... > tag look like?
>
<form action="cgi-bin/mail_form.pl" method="post" enctype="text/plain" accept-charset="iso-8859-1"> ... </form>
- Jan
--
There's no place like ~/
Jan Eden Guest
-
Wolf Blaum #3
Re: Running Perl CGI from Windows
For Quality purpouses, Jan Eden 's mail on Friday 30 January 2004 20:01 may
have been monitored or recorded as:Hi> Hi all,
...What does your <form action=..... > tag look like?> But accessing the script from a Windows machine gives me the prepared error
> message. From the log I can see that all parameter values end up in the
> $name variable, along with the names of the second and third parameter. So
> the value of $name is:
>
> John Doe email=john@doe.com message=This is the message
>
> Note that the first parameter's name does not appear.
Wolf
Wolf Blaum Guest
-
Wolf Blaum #4
Re: Running Perl CGI from Windows
For Quality purpouses, Jan Eden 's mail on Friday 30 January 2004 20:17 may
have been monitored or recorded as:
Hi Jan
> Like this:
>
> <form action="cgi-bin/mail_form.pl" method="post" enctype="text/plain"
> accept-charset="iso-8859-1"> ... </form>
Try enctype="application/x-www-form-urlencoded" instead.
I had the very same problem using the xitami webserver on WinOs.
Dont ask me were that problem comes from - no clue:-)
Hope that works,
Wolf
Wolf Blaum Guest



Reply With Quote

