Hey, i have a wierd snippet i've written that embeds javascript in PHP and then PHP in the javascript. I was just wondering if this can be done. Anyway.. here is it:
if ($_SERVER['HTTP_REFERER']=="http://www.scarredforlife.co.uk/ForumReplies?threadid=$threadid§ionid=$sectid") {
echo "<script>";
echo "var message = document.form1.replymessage.value;";
echo "document.writeln('<?php $_SESSION[message]=' + message + '?>'";
echo "</script>";
}
Any more questions, just ask...
Many thanks, BIOSTALL