Forum Moderators: coopster
I tried both options earlier today but didn't have any luck, which is why i posted. I've just tried both options again, now knowing that i'm using the right function but still not having any luck.
The code i'm using is:
if (!preg_match('/[[:^digit:]]/', $_POST['t_tel'])) {
$error_tel = ERROR_MESSAGE;
}
but it seems to be allowing enteries with letters / no numbers through :( any ideas as to what i'm doing wrong? i've also tried:
if (!preg_match('/[[0-9]]/', $_POST['t_tel'])) {
$error_tel = ERROR_MESSAGE;
}
but still the same probs.
thanks
Rob