Contact Form Help

Discussion in 'PHP' started by irfan saleem, Apr 30, 2009.

  1. #1
    Hi all,

    I need the contact form to work with trendy flash site builder....the contact form came with it, not works.

    I need these things only :

    Name :
    E-Mail :
    Website :
    Details :


    Thanks in advance
    Irfan Saleem
     
    irfan saleem, Apr 30, 2009 IP
  2. irfan saleem

    irfan saleem Active Member

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #2
    Well somehow i make it work to send the mail.....but i am not receiving the full mail :

    Here is the php code:
    <?
    
    $contactfield1=$HTTP_GET_VARS["contactfield1"];
    $contactfield2=$HTTP_GET_VARS["contactfield2"];
    $contactfield3=$HTTP_GET_VARS["contactfield3"];
    $contactfield4=$HTTP_GET_VARS["contactfield4"];
    
    
    
    $email_from = "info@zzzzzzzzzz.com";
    $email_subject =  "New Site For Verification" ;
    //$email_txt = "";
    $email_to = "zzzzzzzz@gmail.com";
    
    
    
    $email_message = "field1: $contactfield1
    field2 :$contactfield2
    field3 :$contactfield3
    field4 : $contactfield4
    
    ";
    
      mail($email_to, $email_subject, $email_message, $email_from);
    
    
    ?>
    
    
    PHP:
    But the main which i am receiving is :
    Plzzz somebody help me......
     
    irfan saleem, Apr 30, 2009 IP
  3. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    1) where is the actual input form html source? 2) check the submission form has the correct name= and value=.
     
    szalinski, May 4, 2009 IP
  4. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #4
    What is the contactfield1, 2, 3, and 4?
    Where there are coming from?
    Are you sure the contactfield1, 2, 3, and 4 are coming from input box of :
    Name, E-Mail, Website and Details ?

    Maybe you can test the form by write the input box value (after submitting) directly to the browser.
     
    bluebenz, May 4, 2009 IP
  5. smb

    smb Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    looks like your contactfield1, 2, 3 and 4 are not set. Check your HTML form for the right names and syntax
     
    smb, May 5, 2009 IP
  6. search$

    search$ Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    use chop function to eliminate any extra chars for all the fields you read from users, otherwise lot of failurer/errors you will see.. for example:

    field2 = chop($contactfield2);
     
    search$, May 5, 2009 IP
  7. irfan saleem

    irfan saleem Active Member

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #7
    Actually i am using trendy flash website maker to build my site and it also have a contact form...but it is not sending me the full mail....even with chop function.....I received this email from the chop function:

    field1: chop();
    field2 = chop();
    field3 :chop();
    field4 : chop();
     
    irfan saleem, May 14, 2009 IP