I'm still new to php and whenever i have freetime i try to learn more and more. Right now i'm working on making a form that cahnged within the same page with PATH_INFO
I have the user input the information then, it when tye click submit it then prints it
back to them to see if they are sure about sending it. It prints out fine in the second part but not when it sends the mail or int he 3rd page. My code is right below(excluding some of form html code)

Thanks for any help and sorry for the long code here..


// Send the mail yo!
mail("", $subject, "Subject: $subjectnMessage: $messagenn", "From: $name");
print "Thank you $namen";
print "Sent was successful";
} elseif($verify){
// Formatting strings
$name = htmlspecialchars(trim($name));
$subject = htmlspecialchars(trim($subject));
$message = htmlspecialchars(trim($message));
// Display information to see if that's what they want sent

Are you sure you want this sent?:<p></p>
<form method="post" action="<?php echo $PATH_INFO?>">
Name: <?php print "$name";?>
Subject: <?php printf("%s", $subject);?>
Message: <?php printf("%s", $message);?>
<input type="submit" name="submit" value="Send it already!">
// This one ends the if statement after the verify button was pressed
// Display the main input form
<body bgcolor="white" text="navy">

<form method="post" action="<?php echo $PATH_INFO?>">
<input type="text" name="name" size="20" maxlength="20">
<input type="text" name="subject" size="20" maxlenth="20">
<textarea cols="17" rows="5" name="message"></textarea>
<input type="submit" name="verify" value="Submit">
} // ends if