The difference between the GET and POST method is that the GET data
is passed in the URL, whereas the POST data is passed in the body of
the message.

In your post you do not specify how affiliate.pl  script "passes" the
form data to the formhandler.pl script so I can't even guess what
might be wrong with that transaction.

If the scripts live on different servers, or you really must use an HTTP
transaction to do it then install the LWP modules and read the
perldocs which have some very good examples:

perldoc LWP
perldoc lwpcook   <== examples of how to do a POST

To receive the data use CGI.pm:

perldoc CGI

CGI.pm for the most part doesn't care if the data arrives as a GET or
a POST, and is very easy to use.

If the scripts live on the same server and you can modify them at
will, then why not just unify them into one script?  That would seem
to be the simplest solution, and the one I would try first.

Again, though, without more information on how the scripts are
"passing" data, I can't even guess what's wrong.

I hope this was helpful, on topic, and not confusing, since I'm as new
at helping others as you say you are with perl :)

[EMAIL PROTECTED] wrote:

> Can someone please give me an example of how to pass form data between
> two CGI programs? Here's what I'm attempting to do.
>   I'm a novice perl programmer at best so I'm just trying to modify two
> programs to do what I need. Basically, I'm trying to use a "affiliate"
> program. What should happen is that a form is submitted to
> "affiliate.pl" . Affiliate.pl then updates a counter and a few other
> things based on the form data passed to it. Affiliate.pl then passes the
>
> form data over to my form handling script ("formhander.pl").  The
> problem is that some form fields get truncated when the data is passed
> back to my formhandler.
>   My basic understanding of things is that there are differences in the
> way "GET" and "POST" data are handled.
>    Ideally, if someone could supply an example of two CGI's where one
> receives either "GET" or "POST" data and passes it along to another CGI
> that can handle a large input string (say 2K bytes) I would be very
> grateful.
> Thanks,
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Tom O'Brien
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

--
Perl, because 600 billion oysters can't be wrong
   Canadian Consulting Services' pet perl hacker
   David Labatte [EMAIL PROTECTED]



Reply via email to