Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Chady (Priest)
on Dec 15, 2003 at 11:57 UTC ( [id://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/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2025-01-18 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (56 votes). Check out past polls.