PHP Multiple Fields

Discussion in 'Programming' started by coba, Sep 21, 2010.

  1. #1
    I've ran a PHP contact form with multiple fields but it's only send 2 fields out of 14 fields, Name and Email fields is send but the rest of the fields don't send. How to send all fields from PHP contact form?
     
    coba, Sep 21, 2010 IP
  2. Cucumba123

    Cucumba123 Well-Known Member

    Messages:
    1,403
    Likes Received:
    34
    Best Answers:
    3
    Trophy Points:
    150
    #2
    How about pasting the code?
     
    Cucumba123, Sep 21, 2010 IP
  3. Internet Monk

    Internet Monk Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Apparently not all of your form fields are actually linked with it.
    Please show us what you've got there - without seeing the actual code we can only guess.
     
    Internet Monk, Sep 22, 2010 IP
  4. jocurileus

    jocurileus Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try this tips here
    http://forums.digitalpoint.com/showthread.php?t=1944126 
    Code (markup):
    If the form is passing data via POST
    
    foreach ( $_POST as $key => $val ){
       $content .= $key." field has the value ".$val."<br>";
    }
    
    Code (php):
    the variable $content will contain all your form values.
     
    Last edited: Sep 22, 2010
    jocurileus, Sep 22, 2010 IP
  5. axelay

    axelay Peon

    Messages:
    54
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Make sure that all your inputs/select/textarea are included within the <form>...</form>

    aXe
     
    axelay, Sep 22, 2010 IP
  6. coba

    coba Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks all, problem solved.
     
    coba, Sep 26, 2010 IP