Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 = ""; 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 |

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://314797]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-08-20 18:10 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (317 votes). Check out past polls.