Two page mobile magic 8-ball

Two page mobile magic 8-ball

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

Ask your question, and click the button for an answer.
";
?>

The second page appends a random number to the URL:


Magic 8-Ball

Magic 8-ball

The magic 8-ball says:

";
echo "Ask another question";

?>