Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Gathering information from a multipage form.

    Ok I know this is real simple code and I'm almost done just need help on the last page.

    This being the html form.

    Code:
    <form action="order001.php" method="post" style="height: 460px">
    	order01<input name="order01" style="width: 40px" type="text" /> <br />
    	order02<input name="order02" style="width: 40px" type="text" /><br />
    	order03<input name="order03" style="width: 40px" type="text" /><br />
    	<br />
    	<input name="Submit1" type="submit" value="submit" />
    </form>
    I use the "> than zero" because on the form that I'm working with all the inputs have values with 0. This way the only information that I receive on the confirmation page is only what the customer orders. Its real simple and I'm still learning.

    PHP Code:
    <?php
    $order01 
    $_POST["order01"];
    $order02 $_POST["order02"];
    $order03 $_POST["order03"];

    if ( 
    $order01 ) {
        echo 
    " amount of $order01 <br />";
    }

    if ( 
    $order02 ) {
        echo 
    " amount of $order02 <br />";
    }

    if ( 
    $order03 ) {
        echo 
    " amount of $order03 <br />";
    }
    ?>
    So now with the last part that I need the guru's help with.
    How do I get the data that is on the confirmation page to the last page which would be a php email.
    Last edited by ghost2012; 11-01-2009 at 01:58 AM.

  • #2
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,547
    Thanks
    57
    Thanked 148 Times in 147 Posts
    you could use sessions
    Website Design Mansfield
    PHP Code:
    function I_LOVE(){function b(&$b='P'){$b.='P';}function a($_){return $_++;}$b='P';define("B",'H');b($b=implode('',array($b=a($b),$b=a(B))));b($b);return $b;}
    echo 
    I_LOVE(); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •