echo "Hello {$_COOKIE['UWGFH']['fn']}{$_COOKIE['UWGFH']['ln']} ...rest of string...";
A suggestion to save some HTTP traffic:
PHP Code:
// set one cookie:
setcookie('UWGFH', 'John,Doe,Fake Company,915,415,5555,blank@aol.com', time()+60*60*24*30,"/",".mydomain.com");
// read and explode the cookie:
list($fn, $ln, $cm, $pac, $ppf, $psf, $ea) = explode(',', $_COOKIE['UWGFH']);
echo "Hello $fn$ln, you work at $cm. Your phone number is ($pac)-$pff-$psf. We can reach you also via email at $ea.";
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Thanks NogDog, that was actually my second question, how do I combine all the variables under just one "setcookie", this is scary, stop reading my mind. I didn't give you permission! *laugh*
Bookmarks