POST values not passing to second form

Discussion in 'PHP' started by jkjazz, Jan 11, 2009.

  1. #1
    Can anyone tell me any reason why the php variables are not recieving values from the first form?

    <?php
    $ip = $_POST['ip'];
    $httpref = $_POST['httpref'];
    $httpagent = $_POST['httpagent'];
    $visitor = $_POST['formElement_First'].' '.$_POST['formElement_Last'];
    $street1 = $_POST['formElement_Street1'];
    $street2 = $_POST['formElement_Street2'];
    $city = $_POST['formElement_City'];
    $state = $_POST['formElement_State'];
    $zip = $_POST['formElement_Zip'];
    $visitormail = $_POST['formElement_Email'];
    $notes = $_POST['formElement_Comments'];
    $about = $_POST["formElement_radio"];
    $dayphone = $_POST['formElement_DaytimePhone'];

    ?>

    I can tell you that $about is populated. formElement_radio is a group of radio buttons.

    Thanks in advance.

    John
     
    jkjazz, Jan 11, 2009 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Try var_dump($_POST); and tell me the output.

    Are you sure it's being sent by POST?
    Could you post the form?
     
    Danltn, Jan 11, 2009 IP
    jkjazz likes this.
  3. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Code for form needed buddy.
     
    harrisunderwork, Jan 11, 2009 IP
  4. bird.23

    bird.23 Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    can u plz show the html file from which u have posted.
     
    bird.23, Jan 11, 2009 IP
    jkjazz likes this.
  5. jkjazz

    jkjazz Peon

    Messages:
    1,717
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ha! The dump just showed me what I was doing wrong.

    Thank you for your help!
     
    jkjazz, Jan 11, 2009 IP
  6. linkexchange1984

    linkexchange1984 Peon

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    linkexchange1984, Jan 13, 2009 IP
  7. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #7
    This has already been solved... and do you have to post those links at the bottom of every post?

    Use the signature feature...
     
    Danltn, Jan 13, 2009 IP