PHP - Passing Variables in 3 forms - Step1, Step2 and Step3
I'm trying to create a form with 3 steps.
1. Filling in the information.
2. Confirmation of information in 1 step.
3. Send email

Whenever I submits the confirmation form, I will receive an email without contents I filled in in Form 1.

Here are the codes:
Form(1)
----------

    <?php
    <form id="entry" action="confirm.php" method="post">
    <input type="text" name="school" id="school" />
    <input type="submit" value="Next Step">
    </form>
    ?>

Form(2)
----------

    <?php
    <form id="entry" action="thankyou.php" method="post">
    <? echo $_POST["school"] ?>
    </form>
    ?>

Form(3)
----------

    <?php
    $subject = "Subject";
    mail("YourEmail@gmail.com", $subject, $_POST("school"], "From: Testing" );
    ?>

Any help with be appreciated!


PHP - Passing Variables in 3 forms - Step1, Step2 and Step3
===

I'm trying to create a form with 3 steps.
1. Filling in the information.
2. Confirmation of information in 1 step.
3. Send email

Whenever I submits the confirmation form, I will receive an email without contents I filled in in Form 1.

Here are the codes:
Form(1)
----------

    <?php
    <form id="entry" action="confirm.php" method="post">
    <input type="text" name="school" id="school" />
    <input type="submit" value="Next Step">
    </form>
    ?>

Form(2)
----------

    <?php
    <form id="entry" action="thankyou.php" method="post">
    <? echo $_POST["school"] ?>
    </form>
    ?>

Form(3)
----------

    <?php
    $subject = "Subject";
    mail("YourEmail@gmail.com", $subject, $_POST("school"], "From: Testing" );
    ?>

Any help with be appreciated!

