Help needed asap
I have the cookie working (I think), I just need to figure out how to change the text depending on the $value of the cookie.
Here is the code I have to set the cookie:
<?php
$value = array("a", "b");
$pickOne = array_rand($value, 1);
$aRandomSelection = $value[$pickOne ];
setcookie("MyCookieName", $aRandomSelection, time
()+3600*24*30); /* expire in 30 days */
?> <?php
if (isset($_COOKIE["MyCookieName"])) {
echo "Welcome guest! <br>";
}
?> -
jbearnolimits -
Thanks
Signaturehttp://onthelineministries.com{{ DiscussionBoard.errors[9433949].message }} -