I think I'm losing a variable somewhere within my code, can anyone help.
Setting variable $random
//check code
$random = rand(10001,99999);
$code = $_POST['code'];
if ($random != $code)
{
header('location: http://**.com/newsletter/error.php');
exit();
}
further down page within the signup form I am trying to display $random, but it's just blank. This is code i'm using, just simply echo.
echo $random;
Does anyone have any ideas as to why it seems I'm losing the $random.
Thanks
Jon