John Walstra wrote:
> I have two embperl documents. The first one generates a form. When you submit
> the form, it calls itself, "<FORM METHOD=POST ACTION=first.epl>", to check
> for field errors (eg Someone typing in a username that exists in the system). If
> there is no field errors, I use the following to redirect to my second document.
>
> $req_rec->header_out("Location" => "second.epl");
> $req_rec->status(REDIRECT);
>
> What I want is to have the data that is stored in fdat, from the first document,
> be passed to the second document via the redirect. Is this possible?
>
> Thanks,
> John
>
> --
> John Walstra CNET Networks / Apollo Solutions
> Senior Software Developer 300 Park Blvd, Suite 105
> mailto:[EMAIL PROTECTED] Itasca, IL 60143-4914
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
Redirecting a request with http meta, means that browser will stop reading
current request and will get another page.
So you cannot expect to keep %fdat since you don't know if it is the same Apache
child which will handle the TWO requests...
And you have to set hidden field or sometrhing like this...
Another way is using internal redirect...
In epl document you can a $r->internal_redirect( "/redirectTo.epl" )
In that case, the brother is not aware of the redirection, and the redirection is
internal ( so same child ). %fdat is kept.
BUT, "/redirecTo.epl" has to be a full path from the documentRoot, and take care
if you use internal_redirect outside of embperl.
Hope it's help, sorry for my bad english
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]