Hey spaceman12,
I believe that using the isset function on a variable this way cannot be done because when you SET the variable like:
$Name=$_POST['Name'];
it is SET to even an empty value... but it is SET. so you will not be able to check if it has a value unless you check it like:
if(!isset($_POST['Name']))
and then give its value to $Name variable or .
if($Name == "")
I think that is the reason your script wont work.
To check that try to declare your $Name variable instead of like :
$Name=$_POST['Name'];
like this:
$Name;
and run your script. It will go in to the if statement and execute your code because the variable is actually not SET!
Hope this helped.