Re: Posting data when redirecting to a page
Gerald Richter wrote:
I have a beginner's question.
I'm trying to redirect the program flow to another .htm page using
$http_headers_out{Location} but I also want to pass a message ($msg) to
the
new page using POST method.
You can't do a POST request as an redirect, but you can do a GET to pass the
data
[-
$r = shift ;
$http_headers_out{Location}="acc_admin.htm?msg=" . $r -> Escape ($msg, 2) ;
Which will not work for long query strings (had a lot of fun debugging
this one...)
Save the data somewhere and send only data id - or even better, use
Apache/Embperl sessions.
- Robert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: relative path is not working to load files
Em Mon, 30 Dec 2002 14:24:34 -0500 (EST)
"Carlos" <[EMAIL PROTECTED]> escreveu:
>
> Thanks to reply my email about Loading a file from a different
> directory tree using execute.
>
> I am not using EmbperlObject.
> >Hi,
> >
> >You can pass relative paths to Execute, >like
> >'../some/other/page.epl'
>
> I have tried using relative path but still does not work.
>
> My problem is:
> > Do you know how to load a file with execute from a different
> > directory tree?
> >
> > i have a folder modules/Recommend/recommend.epl
> >
> > and other folder includes/subs.epl
> >
> > folders subs and modules are at the same level.
> >
> >
> > if i try to Execute ('../subs.epl') from recommend.epl
Here is the mistake, you should use: Execute ('../includes/subs.epl').
Please check your sintax more carefully.
Regards,
Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: Posting data when redirecting to a page
Em Mon, 30 Dec 2002 14:29:15 -0800
Hoenie Luk <[EMAIL PROTECTED]> escreveu:
> Hi all,
>
> I have a beginner's question.
>
> I'm trying to redirect the program flow to another .htm page using
> $http_headers_out{Location} but I also want to pass a message ($msg)
> to the new page using POST method.
>
> [-
> $msg = "Error saving data #53: really really long explanation";
> $http_headers_out{Location}="acc_admin.htm";
> exit;
> -]
>
> What's the best way to do that?
>
Hi,
When using redirection with http headers the best way is to store the
message in the session (%udat) and retrieve the message later.
Maibe you can redirect the output using an [$ if ... $] statement
followed by an Execute to the other page, this way you can pass the $msg
variable easily in the @param array.
Regards,
Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1.3.5 : still make test pb on RedHat 8
> > >>#53 nesting.htm... > >> > >>[-1]Malformed UTF-8 character (overflow at 0xc41461c8, byte 0x09, after > >>start byte 0xff) in pattern match (m//) at test.pl line 1128, line 2. > >>[-2]Malformed UTF-8 character (unexpected end of string) at test.pl line > >>1136, line 2. > >>etc... > >> Could you send me the test/tmp/out.htm after this test has failed? > now it says > > ... > #35 varepvar.htm... ok > #36 escape.htm... > Error in Line 65 Could you please also send me test/tmp/out.htm you modfied test.pl and this test fails? Gerald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
