I found an answer to this and tried it but it did not work so I am posting this for more help. I posted a reply to the thread I found earlier but no one replied.
$response = mt_rand(1,6);
echo '<script>currentQuote = $currentQuote;</script>';//this not working
echo "currentQuote is:";
echo $currentQuote; //this shows on the screen fine
Any help would be GREATLY appreciated. I have run out of ideas to try.
Nope, I still get undefined
Originally Posted by ss1289