New to php dev net but have a bit of a delima regarding a part of my code I'm racking my brain with, I know it's pretty simple but...
***** PLEASE USE THE
Code: Select all
TAG *****[/color]Code: Select all
$valid_cc = array('30','31','32','33','34','350','351','352','353','354',
'355','356','357','358','359','36','37','370','371','372','373','374','375','376','377','378','379','38','380','381','382','383','384','385','386','387','388','3883','389','39','40','41','42','420','421','422','423','424','425'
,'426','427','428','429','43','44','45','46','47','48','49','1');
if (isset($_POST["mich_cc"])) {
$intccode = str_replace("+","",numberOnly($_POST["mich_cc"]));
$intccode = preg_replace("/^0?/","",$intccode);
}
if (!in_array($intccode, $valid_cc)) {
$errormsg = "cc_error";
}-p-hates-p