Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: question about forwarding variables to php from perl

by Chady (Priest)
on Dec 15, 2003 at 11:57 UTC ( #314797=note: print w/ replies, xml ) Need Help??


in reply to Re: question about forwarding variables to php from perl
in thread question about forwarding variables to php from perl

Maybe this will help you visualize this. (excuse the bad ASCII art)

   YOU    YOU
    |      |
    V      V
  +-----------+
  | WebServer |
  +-----------+
    |       |
    |       +------+
    V              V
 +------+     +------------+
 | Mojo |---->| Php Script |
 +------+     +------------+

Calling Mojo is the blue path. In Mojo, you are posting to the script, which is the red path, and that's probably not what you want to do. You want the green path.

So, you need Mojo to return to you, and YOU will have to post to the php script. which should be roughly something like this:

use CGI qw/:standard/; my $url = "http://domain.com/test.php"; print start_form('POST', $url); print hidden($_, $vars{$_}) for keys %vars; print submit('Click to continue'); print end_form;

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/


Comment on Re: Re: question about forwarding variables to php from perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://314797]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-09-21 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls