On 02/23/2006 04:37 AM, Elver Loho wrote:
Hi! I'd like to embed an existing PHP-based forum into an Interchange page. I can include a PHP page's output using: [get-url url="http://ourserver.tld/something.php" strip="1"] Now I also want to pass all the GET and POST variables to it. [get-url url="http://ourserver.tld/something.php" content="foo=[cgi foo]&bar=[cgi bar]" method="POST" strip="1"]
Try something like this (untested):
[calc]
my @out;
while (my($key,$value) = each %$CGI) {
push(@out,"$key=$_") foreach (split(/\0/,$value));
}
$content = join('&',@out);
undef;
[/calc]
[get-url url="http://ourserver.tld/something.php" content=`$content`
method="POST" strip="1"]
Peter _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.