Re: please explane cookies.
- From: musiccomposition@xxxxxxxxx
- Date: 25 Aug 2006 13:53:22 -0700
Just make a cookie with the same name and the orginal should be
overwritten.
Frits van Leeuwen wrote:
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.
.
- Follow-Ups:
- Re: please explane cookies.
- From: Frits van Leeuwen
- Re: please explane cookies.
- References:
- please explane cookies.
- From: Frits van Leeuwen
- please explane cookies.
- Prev by Date: Site root question: Newbie
- Next by Date: Re: Site root question: Newbie
- Previous by thread: please explane cookies.
- Next by thread: Re: please explane cookies.
- Index(es):
Relevant Pages
|