Forum Moderators: coopster
if (!empty($aantal))
{
$theresults = ereg("[0-9]", $aantal, $trashed);
if ($theresults) {$isamatch = "Yes"; } else { $isamatch = "No"; }
if ($isamatch == "No")
{
echo "<SCRIPT>alert(\"ERROR: Geen correct aantal\");</SCRIPT>";
$aantal = "0";
}
}
Does anyone have an idea.
Thanks