Hi,
I want to restrict access to a forum to 10 local postcodes has anybody any ideas.
This is what I came up with so far-
function valid_postcode($postcode)
{
// check a postcode possibly belongs to Surrey or west sussex
if ($postcode == BN||CR||GU||KT||PO||RH||TN||TW)
return true;
else
return false;
}
and...
// POSTCODE NOT VALID
if (!valid_postcode($postcode))
{
echo 'That is not a local postcode. Please go back '
.' and try again.';
exit;
}
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
been a long day stabbing in the dark.
Thanks for looking.