Had to use random numbers to prevent caching of pages by mobile web browsers. It’s entirely possible that I made this workaround too complicated, as I had a file version problem on my local drive (I was updating the wrong file.)
The first page uses a random number in a hidden field with the POST method:
Magic 8-ball
The second page appends a random number to the URL: The magic 8-ball says: "; ?>
?>
$responses = array(
"As I see it, yes",
"It is certain",
"It is decidedly so",
"Most likely",
"Outlook good",
"Signs point to yes",
"Without a doubt",
"Yes",
"Yes - definitely",
"You may rely on it",
"Reply hazy, try again",
"Ask again later",
"Better not tell you now",
"Cannot predict now",
"Concentrate and ask again",
"Don't count on it",
"My reply is no",
"My sources say no",
"Outlook not so good",
"Very doubtful");
?>
Magic 8-ball
$selection = rand(0, count($responses)-1);
?>
echo "[".$responses[$selection]."]";
echo "
echo "Ask another question";
Posts