Thanks,

I'll implement sessions... :)

regards

Bart

-----Oorspronkelijk bericht-----
Van: _lallous [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 11 september 2001 13:30
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] Re: variables


In that case you'll have to use session_variables or cookies.....
mostly session_variables are better especially for authentication and
login/logout systems...

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for the fast answer1
>
> Yes I thought of that, but I also got the problem using the $vars in
frames:
>
> I'm using a authenticationform for users to get to a frameset. Now I'm
> transfering the usernames/pwds in the uri-string to all the framepages. In
> all framepages I check for $PHP_AUTH_USER to be set and when so I query
the
> db again and.
> It seems that the vars aren't global. How can I globalize the vars so they
> are usable in other files. Are sessions teh only option?
>
> Thanks in advance,
> Bart
>
> -----Oorspronkelijk bericht-----
> Van: _lallous [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 11 september 2001 12:23
> Aan: [EMAIL PROTECTED]
> Onderwerp: [PHP] Re: variables
>
>
> Sure you can!
>
> consider this simple example:
> <html>
> <body>
> <a href="javascript:setvars('var1value', 'var2value')">click here to go to
> next page</a>
>
> <script language="JavaScript">
> <!--
>   function setvars(var1, var2)
>   {
>     df = document.dataform;
>     df.var1.value = var1;
>     df.var2.value = var2;
>     df.submit();
>   }
> //-->
> </script>
> <form name="dataform" action="page2.php" method="post">
> <input type='hidden' name='var1'>
> <input type='hidden' name='var2'>
> </form>
> </body>
> </html>
>
> it's using hidden forms...
> you can also use sessions...
>
> <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello,
> >
> > Is it possible to transfer certain variables to a new scripts, but not
> doing
> > this as uri-parameters (../bla.php?var1=var&var2=var#)
> >
> > I need it for Usernames and passwords and when the pages get cached the
> > usernames and pwd's can be viewed in the Temp-inetfiles-folder in
> Windhoze.
> >
> > Thanks,
> >
> > Bart
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to