Reply to Re: Time() problem

Your name:

Reply:


Posted by Joseph Melnick on 05/27/05 18:46

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@comcast.net> wrote in message
news:TpGdnc2508EIlArfRVn-1g@comcast.com...
> 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@ckdog.co.uk> wrote in message
> news:lohd91h32cb7aaa163iuqe7jgf5u7apvct@4ax.com...
>>I noticed that Message-ID: <Xs-dnaon95ljOgvfRVn-hQ@comcast.com> 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
>
>

[Back to original 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

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