fuzzyping has asked for the wisdom of the Perl Monks concerning the following question:
Here's the relevant sub. If anyone has any ideas, I'd love to hear them. Thanks!malformed header from script. Bad header=HTTP/1.1 302 Moved: index.cgi
sub paypal_redirect { my ($query, $total_cost) = @_; my $cgi = CGI->new; print $cgi->redirect(-uri => 'https://www.paypal.com/cgi-bin/w +ebscr', -nph => 1); print $cgi->start_form(-method => 'post'); print $cgi->hidden(-name => '_cmd', -value => '_xclick'); print $cgi->hidden(-name => 'business', -value => $email); print $cgi->hidden(-name => 'item_name', -value => $comment); print $cgi->hidden(-name => 'item_number', -value => $query->p +aram('session')); print $cgi->hidden(-name => 'amount', -value => $total_cost); print $cgi->hidden(-name => 'no_note', -value => 1); print $cgi->hidden(-name => 'currency_code', -value => 'USD'); print $cgi->end_form; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirecting form data to external site
by cLive ;-) (Prior) on Nov 21, 2003 at 06:40 UTC | |
by fuzzyping (Chaplain) on Nov 21, 2003 at 06:42 UTC | |
|
Re: Redirecting form data to external site
by Chady (Priest) on Nov 21, 2003 at 07:59 UTC | |
by Anonymous Monk on Nov 21, 2003 at 10:09 UTC | |
by cLive ;-) (Prior) on Nov 21, 2003 at 14:57 UTC | |
by Anonymous Monk on Nov 21, 2003 at 20:29 UTC | |
by cLive ;-) (Prior) on Nov 23, 2003 at 01:20 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |