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 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 PROTECTED] 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

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to