PHP קוד:
//+--------------------------------------------
//| Is this email ok?
//+--------------------------------------------
$email_c = explode("@", $in_email);
$earray = explode(",", $bemail_ok);
foreach ($earray as $emails) { $email_blocked[] = $emails; }
if (in_array($email_c['1'], $email_blocked)) { echo "The element is in the array";}
else { echo "not found"; }
אני מנסה שיהיה אפשר להרשם רק עם אימייל שהגדרתי...
בתוך $bemail_ok יש רשימה של אימיילים מופרדים בפסיק.
$in_email - האימייל ששלח המשתמש.
הבעיה שכל הזמן זה כותב לי לא נמצא...