במקרה ולא הבנת
הרעיון של תמר הוא הרעיון המקצועי והנכון ביותר, אך דורש ממך לדעת קצת יותר. שיטה פשוטה יותר היא בדיקה רגילה באמצעות פונקציות רגילות שרובנו מכירים:
if (ereg($email, "@")) { if (ereg($email, ".")) { echo "@ and . exsits in the string"; } else { echo "only @ exists in the string"; } } else { echo "@ and . were not found in the string"; //here you can send the user to refill the email input by //header("Location: ...") function (don´t forget to delete //the output) }
אורן