I'm trying to get build my mailing list. Currently on my website, I have an opt-in form. When people enter their name and email addy, I get an email with that information and they are then sent to another page that says thanks for signing up... How can I make it so if one or both fields are left blank, they can't hit the submit button? Or they just don't go to the thanks page. Here's the code I'm using: Code: <?php $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; mail( "[email protected]", "New Email Submit", $name, $email ); header( "Location: http://www.mywebsite.com/main.html" ); ?> I know almost nothing about PHP. I hope this is the right place. Thanks in advance.