Email validation, using if else statements wont allow it to continue checking if there was an error with the first if?
I have:

if(isset($_POST['submit'])) {
												
													if (empty($name)) {
														echo'<span class="error">ERROR: Missing Name </span><br/>';
													} else if(empty($phone) || empty($email)) {
														echo'<span class="error">ERROR: You must insert a phone number or email</span><br/>';
													} else if(!preg_match('/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/', $email)) {
														echo'<span class="error">ERROR: Please Insert a valid Email</span><br/>';
													}  else {
													mail( "anEmail@hotmail.com", "Monthly Specials Email",
													"Name: $name 
													 Email: $email 
													 Phone Number: $phone
													 Comment: $comment", "From: $email" );
													echo'<span id="valid">Message has been sent</span><br/>';
													}

How else could I check for all of those issues without using else if?
When I use else if, it checks through the first if statement, if there is an issue with it it will not continue going through the other if statements following that one.

Any ideas? Thank you
Email validation, using if else statements wont allow it to continue checking if there was an error with the first if?
===

I have:

if(isset($_POST['submit'])) {
												
													if (empty($name)) {
														echo'<span class="error">ERROR: Missing Name </span><br/>';
													} else if(empty($phone) || empty($email)) {
														echo'<span class="error">ERROR: You must insert a phone number or email</span><br/>';
													} else if(!preg_match('/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/', $email)) {
														echo'<span class="error">ERROR: Please Insert a valid Email</span><br/>';
													}  else {
													mail( "anEmail@hotmail.com", "Monthly Specials Email",
													"Name: $name 
													 Email: $email 
													 Phone Number: $phone
													 Comment: $comment", "From: $email" );
													echo'<span id="valid">Message has been sent</span><br/>';
													}

How else could I check for all of those issues without using else if?
When I use else if, it checks through the first if statement, if there is an issue with it it will not continue going through the other if statements following that one.

Any ideas? Thank you