2 questions: 1) Why won't the include file appear when called? and 2) How can I get both die messages to appear if both are false...right now if passwords don“t match and email is in wrong format only "passwords did not match" appears. If passwords match but email is incorrect format the "invalid email address" is returned. How can I get both to appear at once if both are incorrect?
Thanks
Code:
<?php
if ($password != $password2) {
die('Passwords did not match.');
}
}
if (!preg_match("/.@...*/", $POST['email_address']) | preg_match("/(<|>)/", $POST['email_address'])) {
die('Invalid e-mail address.');
}
include 'join_fauna.php';
?>