----- Original Message -----
From: Sebastien Cabaniols <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 13, 2000 8:15 AM
Subject: How to make a script that automatically post forms?


> Hi
>
> I'am new with Perl
> I would like to write a little script that would
> answer to a form (POST method).

Try the cgi.pm  module from cpan, basically do something like

#!/usr/bin/perl -w

use CGI (:standard);
# use CGI module

my $value = param('param_name');
# grab the value of "param_name"

my $first_name = param('fname');
# grab the vaule of param name "fname"

print headers();
print ("Your name is $firstname<BR>");
print ("and you seem to enjoy $value<BR>");

# print info out to the users.

`echo "$name - $vaule" >> /tmp/somefile.txt`;
# save the information in a file for latter

# go on to do some further processing.


There is more than 1 way to write a cgi-script in Perl, so I am not claiming
this will be the best way...


>
> Am I in the wrong place ?

Yes, I think so.  I also subscribed to this list thinking it was a general
perl mailing list, but it turns out to be a developers list for libwww.  I
have no clue what they are talking about, but it seems intersting.  Which
brings up another point, does anyone know of a general Perl or Perl/CGI
mailing list?

Jack

>
>
> Thanks in advance for any help
>
>
>

Reply via email to