How do I check multiple variables to see if they're empty, and forward the request to a new URL if they are both empty?
Here's my code so far:
<?php
if(empty($_GET['Email'] and $_GET['Phone+Number']))
{
header('Location: /index.html');
exit;
}
?>
My URL looks liks this:
localhost/site/success.php?Email=joe%40sample.com&Phone+Number=123456789