hi folks,
i've been trying to validate my input text with ereg but it still don't work.
All I want to accept is number, * and -.
But with this line as validation :
if (ereg('[0-9*]', $value))
{
echo "ok!";
}
letter are still accepted.
have an idea?
thanx,
Jacinthe