On Wednesday 22 January 2003 06:00 pm, Kee Hinckley wrote:
> >Quote from Gerald:
> >>Embperl passes the URL parameters in %fdat. That's what it always did.
> >> Only if you have POST data (from a form) and URL parameters, you only
> >> get the POST data in %fdat
>
> Ah. Right. I've never been able to determine from any spec what is
> supposed to be done if there is both POST *and* GET data. Just
> taking the POST seems as good as any solution.
>
> >Yes, I'm using HTML::Embperl::Execute. How do I pass URL parameters to it
> >just like it was receiving data from a browser? Do I just :
> >
> >[- Execute "/www/htdocs/page.epl?key=$value" -]
>
> That's what I was trying to say with my hurried example. From the
> documentation it looks like you should be able to say:
>
> Execute({ inputfile => "/www/htdocs/page.epl", $fdat => {key =>
> $value}, $ffld -> ['key']});
This is not right, Kee. The URL parameters are NOT part of $fdat when you
POST data so passing the URL parameters to the Execute'd page in $fdat is not
right.
I've tried passing the parameters to the Execute command like I mentioned
above and that doesn't work. I'm quite at a loss on how this should be
accomplished. They need to arrive at the $ENV{QUERY_STRING} in order for
them to be handled correctly by the receiving page, but I'm wondering if
there's a Embperl way of doing this besides trying to set the environment
variables manually before calling Execute.
Anyone?
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]