Forum Moderators: coopster
Array
(
[1] => y
[2] => y
[3] => n
)
I want to make sure that I receive the expected values so this check it out:
$answer=$_POST['answer'];
if (!preg_match("/^[a-z]+$/",$answer[$counter]))
{
echo "<h3>Intrusion tentative</h3>";
exit();
}
But it results in:
Notice: Undefined offset: 0
which is: if (!preg_match("/^[a-z]+$/",$answer[$counter]))
I used this many times (altough not with radio)
what am I not considering?