Re: [PHPLIB] access to get vars in loginform.ihtml From: garyb <email protected>
Date: 02/18/00

Since my first post, I did figure out how it worked before - the original
website I'm adapting had a bunch of javascript in the page, which reads the
variables and puts them in a javascript array. So, by including this
javascript in loginform.ihtml, I now have the variables in the login form.
But I still haven't figured out how to get them into my PHP - the server
side.

This won't work once they're logged in and want to go again, however.
Thinking... I'll try globalizing various places.

G

Philip wrote:
> I'm not sure if this will work, but maybe you have to make the global in
> your auth_validatelogin() function. It might work.
...
> garyb <email protected> wrote:
> >
> > I'm sure I made this work once, but have now forgotten... How do I access
> > GET variables within the PHPLib environment?
> >
> > I have an initial session-enabled but not controlled-access page that uses a
> > scripted link to send GET data to a result page, e.g.,
> > <a href="foo.html?foo=1">CLICK HERE</A>
> >
> > The result page requires user login, so the login form comes up.
> >
> > I need to show part of the data on the login form and also carry it on to
> > the result page. The data isn't arriving on either the loginform or the
> > result page any more. I think it did early in the development process.
> >
> > I've tried the variable name ($foo), also $GLOBALS["foo",
> > $HTTP_GET_VARS["foo"] and $HTTP_POST_VARS["foo"] (for completeness), and
> > can't find the data. But I'm sure I did before.
> >
> > I also tried globalling $foo in the page header and mucking with registering
> > it, but I may not have done these correctly.
> >
> > TIA,
> > Gary B
>
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.