I am testing a form (called "one.php") with 4 fields (login, password, fullname, url) when the submit button is clicked it goes to "two.php"
On page "two.php" I would like to print again the values of the variables that it obtained from "one.php" to confirm, and have a button that when clicked the results of the variables to be send to an email, and if not they can click the "Return Back" button that will take them back to and make changes.
I have the following, but it just does not work with the "two.php" - it does not like that if statement I think. I will keep making changes to this, and hope to make it work. If you have any ideas I would appreciate them once more. Thanks!
one.php
-----------------------------------------------------------------
<HTML><BODY>
<FORM NAME="TheForm" METHOD="post" ACTION="two.php">
...
</FORM>
</BODY></HTML>
two.php
-----------------------------------------------------------------
<?
if ($submit == "click")
{
mail("tester@hotmail.com", "Form Testing", "$login<BR>$password<BR>$fullname<BR>$url");
PRINT "Thank you, your message was sent";
}
echo '
<html><body>
<FORM METHOD="POST" "<? echo $PHP_SELF; ?>">
<TR><TD>
<?
PRINT "Greetings $login, thank you for filling the form<BR>";
PRINT "Your password is $password!<BR>";
PRINT "The fullname is $fullname..<BR>";
PRINT "The URL is: $url<BR>";
?>
<input type="submit" name="submit" value="click">
<input type="submit" value ="Go Back">
</FORM>
</body></html>
';
?>





Bookmarks