[pmwiki-users] Passing variables from one page to another

Patrick R. Michaud pmichaud at pobox.com
Fri Jun 23 11:28:43 CDT 2006


On Fri, Jun 23, 2006 at 04:50:05PM +0200, Dominique Faure wrote:
> On 6/23/06, The Editor <editor at fast.st> wrote:
> [...]
> > Now here's my next question:  I'm trying to modify the FAST Membership
> > Recipe so that in addition to creating a new member account, it will
> > pass the new member name and password to the next page for use in a
> > form which will do some additional processing and send me an email.  I
> > tried changing the line below to the one after it, but it did not seem
> > to work.  Any suggestions anyone?
> >
> > $redirect_page = $_REQUEST['redirect'];
> >
> > $redirect_page = $_REQUEST['redirect'] + '?myname=' + $newName +
> > '?mypass=' + $newPass;
> >
> 
> BTW, propagating clear passwords on URL redirections is a *VERY BAD
> IDEA*. You should use POSTed form with hidden fields.

Even POSTed forms with hidden fields isn't the best approach, as the
pages (with the hidden fields in cleartext) tend to get captured
in browser's caches.  Far better is to use session variables.

Pm




More information about the pmwiki-users mailing list