http://www.txraves.org/~djcisk/php/temporaryphp.php
***************************

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..


Cisk

*******
<?php
if($submit){
// Send the mail yo!
mail("djcisk@aol.com", $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?>">
<pre>
Name: <?php print "$name";?>
<br>
Subject: <?php printf("%s", $subject);?>
<br>
Message: <?php printf("%s", $message);?>
<br>
<input type="submit" name="submit" value="Send it already!">
</form
</pre>
<?php
}
// This one ends the if statement after the verify button was pressed
else{
// Display the main input form
?>
<body bgcolor="white" text="navy">

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