RE: [PHP] Re: variables
| From: | webgenie at wanadoo dot nl | Date: | Tue, 11 Sep 2001 10:41:39 +0000 |
| Subject: | RE: [PHP] Re: variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66907@lists.php.net to get a copy of this message | ||
Thanks,
I'll implement sessions... :)
regards
Bart
-----Oorspronkelijk bericht-----
Van: _lallous [mailto:elias_bachaalany@yahoo.com]
Verzonden: dinsdag 11 september 2001 13:30
Aan: php-general@lists.php.net
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...
<webgenie@wanadoo.nl> wrote in message
news:KDEGLILLMKMDKJGAMGHIOEINCBAA.webgenie@wanadoo.nl...
> 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:elias_bachaalany@yahoo.com]
> Verzonden: dinsdag 11 september 2001 12:23
> Aan: php-general@lists.php.net
> 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...
>
> <webgenie@wanadoo.nl> wrote in message
> news:KDEGLILLMKMDKJGAMGHIMEIKCBAA.webgenie@wanadoo.nl...
> > 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net