Re: Time() problem
- From: "Joseph Melnick" <jmelnick@xxxxxxxx>
- Date: Fri, 27 May 2005 11:46:17 -0400
Hello Lee,
Provide your content selectively.
<?php
if(array_key_exists('token',$_COOKIE)){
$goodcookie = TRUE;
$greeting = ''; $content = '';
$token = $_COOKIE['token'];
switch($token){
case: 'Joseph': $greeting = 'Joe';
$content = 'This is joes page';
break;
default: $goodcookie = FALSE;
}
if($goodcookie){
$contentpage='
<html><head><title>content page</title></head>
<body>
hello '.$greeting.'<br>
<p>'.$content.'</p>
</body>
</html>';
echo $contentpage;
}
else { echo $loginpage; }
}
else
{
echo $loginpage;
}
?>
Joseph Melnick
"Lee David" <affordable_turnkey_solutions@xxxxxxxxxxx> wrote in message
news:TpGdnc2508EIlArfRVn-1g@xxxxxxxxxxxxxx
> What I'm after is identifying the user. I'll personalize the pages, but
> I'll also include some "members only" stuff for the staff down the road.
> The user will be in a database with their password. I want to put it in a
> cookie so they don't get it each time they come to the web site.
>
> Thanks,
> Lee
>
> "Geoff Berrow" <blthecat@xxxxxxxxxxx> wrote in message
> news:lohd91h32cb7aaa163iuqe7jgf5u7apvct@xxxxxxxxxx
>>I noticed that Message-ID: <Xs-dnaon95ljOgvfRVn-hQ@xxxxxxxxxxx> from Lee
>> David contained the following:
>>
>>>I want to popup a window
>>
>> But many users don't want you to.
>>
>> --
>> Geoff Berrow 0110001001101100010000000110
>> 001101101011011001000110111101100111001011
>> 100110001101101111001011100111010101101011
>
>
.
- References:
- Time() problem
- From: Lee David
- Re: Time() problem
- From: Oli Filth
- Re: Time() problem
- From: Lee David
- Re: Time() problem
- From: Geoff Berrow
- Re: Time() problem
- From: Lee David
- Time() problem
- Prev by Date: Re: md5 encryption
- Next by Date: Re: md5 encryption
- Previous by thread: Re: Time() problem
- Next by thread: md5 encryption
- Index(es):