How do I take a specific post variable from one page to another?

Discussion in 'PHP' started by Imozeb, Feb 20, 2010.

  1. #1
    I have two html forms on one page and I want to take variables from only one of the submited forms to another page but not the other variables. How do I do this?
     
    Imozeb, Feb 20, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Assign a name to the fields...

    <input type="text" name="danx10">

    Then call it on the other page like:

    <?php
    echo $_REQUEST['danx10'];
    ?>
    PHP:
     
    danx10, Feb 20, 2010 IP
  3. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okay. But is there anyway I can choose the specific input box depending on which form was submited?
     
    Imozeb, Feb 20, 2010 IP