Flash contact form - PHP code problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arcadenewbie
    New Member
    • Mar 2007
    • 1

    Flash contact form - PHP code problem

    I am new to the forum, so first off, hello to everyone!

    I cannot get the php code below to send mail from website to my email address. When i use it, it throws up no error warnings at all, i just do not recieve any mail. I have no knowledge of PHP, therefor have no idea what needs to be changed in this code, which was provided for me to use with the flash form. I am hoping someone can help. I did change the you@yourdomain. com and info@yourdomain .com to my own address but changed nothing else in the php code.

    [php]<?

    $contactfield1= $HTTP_GET_VARS["contactfie ld1"]
    $contactfield2= $HTTP_GET_VARS["contactfie ld2"]
    $contactfield3= $HTTP_GET_VARS["contactfie ld3"]
    $contactfield4= $HTTP_GET_VARS["contactfie ld4"]



    $email_from = "you@yourdomain .com";
    $email_subject = "" ;
    //$email_txt = "";
    $email_to = "info@yourdomai n.com";



    $email_message = "field1: $contactfield1\ n
    field2 :$contactfield2 \n
    field3 :$contactfield3 \n
    field4 : $contactfield4 \n

    ";

    mail($email_to, $email_subject, $email_message, $email_from);


    ?>[/php]
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Try and break things down; start with a PHP script with simple strings in the mail() command to see if that works. Most productions systems have PHP errors disabled, so include the following at the top of the page:
    [PHP]
    error_reporting (E_ALL);
    ini_set('displa y_errors', True);
    [/PHP]

    Comment

    Working...