You are here: Re: please explane cookies. « All PHP « IT news, forums, messages
Re: please explane cookies.

Posted by Frits van Leeuwen on 08/28/06 11:02

I know, that's the problem

> Just make a cookie with the same name and the orginal should be

> > Hello,
> > I try to understand cookies.
> > This is what I have and it's working.
> >
> > INDEX.PHP
> > -------------
> > <?php
> > setcookie("LeeuwendeelTaal","--",time()+31536000);
> > ?>
> > <html>
> > <body>
> > <?php
> > if (isset($_COOKIE["LeeuwendeelTaal"]))
> > {
> > // here a case for NL or EN
> > print_r($_COOKIE);
> > echo "<br />Taalcode = " . $_COOKIE["LeeuwendeelTaal"] . "!<br />";
> > }
> > else
> > {
> > // Here I like to chooce the language
> > echo "Chooce your language<br />";
> > }
> > ?>
> > test3<BR>
> > </body>
> > </html>
> >
> > But....
> > I do not understand how more now.
> > When I start INDEX.PHP, I set a cookie. When it is already there, I
> > overwrite it. But I only like to use the cookie. And when I like, I like
to
> > change the file.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация