Gary,
Thanks for the reply. Even after changing it to use the CGI module i still had a
problem but i finally figured that out. I had to hard code using libraries {
use lib "/usr/local/lib/perl5/site_perl/5.6.1";
use lib "/usr/local/lib/perl5/site_perl/5.6.1/i686-linux";
} (sounds like i have a config issue in linux...)
Anyway, thanks for the info on the CGI Module, that appears to be quicker, and
easier.
have a good night
-katia
Gary Hawkins wrote:
> Recommend replacing the parsing routine, mainly because it is said to have a
> bunch of security holes:
>
> read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
>
> @pairs=split(/&/, $buffer);
> foreach $pair (@pairs)
> {
> ($name, $value)=split(/=/,$pair);
> $value=~tr/+/ /;
> $value=~s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
> $form{$name}=$value;
> }
>
> # Assign variables to arguments
> $eu_addy = $form{'eu_addy'};
> $tsr_addy = $form{'tsr_addy'};
>
> ....with this:
>
> use CGI 'param';
>
> $eu_addy = param{'eu_addy'};
> $tsr_addy = param{'tsr_addy'};
>
> That's all there is to it. Also, this method allows for multiple choice form
> elements (where the user can hold down the control key to select more than one
> item), in which case the script variable would be an array rather than a
> scalar.
>
> Don't worry, this CGI approach is blistering fast.
>
> If it does not work then check for mismatch between script and form element
> names.
>
> Gary
>
> > -----Original Message-----
> > From: katia goforth [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 08, 2002 9:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: email word attachment from html form input
> >
> >
> > hello,
> >
> > I am trying to take input email addresses from an html web form and
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]