// Start Session and register text variable session_start(); session_register("text"); // Generate anti-spam check text $spam=""; for ($ii=1 ; $ii <=4 ; $ii++) { $spam.=chr(rand(97,122)); } for ($ii=1 ; $ii <=2 ; $ii++) { $spam.=rand(0,9); } // Set up session variable for code.php to use and javascript spam variable $_SESSION['text']=$spam; echo ""; ?>
|