I'm getting a lot of critics on my scripting, With my register i'm using:
(empty($_POST['email']))
There are some guys who say that that isn't good, any better alternatives?
Also i'm using preg_march for my email valitdation:
if (preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $_POST['email'])) {
There is one guy who says i need to use Filter_validate
and there is a guy who is telling me to use strlen
any answers?
And at last: I'm sending an activation email by using:
mail($Email, 'Activeer je account!', $message, 'Van: NoReply@RubyCMS.com');
Is there something wrong with this? People keep saying i need to use the phpmailer class but i don't even know what that is...
Thanks