1 Reply Latest reply on Aug 14, 2007 6:16 PM by zxy709

    contact form , flash , php

    zxy709


      I'm having problem with my flash based contact form that uses PHP.The contact form loads in fine, it allows me to type my name, email, and message and then send. It even responds saying that the function worked.The email sends but when I open it up in my inbox none of the information is there. My labels are there from the PHP file but none of the information I entered into the form shows up.

      submit button action:

      on(release) {
      _parent.getURL("contact.php","_blank","GET");
      _parent.name="name:";
      _parent.company="company:";
      _parent.phone="phone:";
      _parent.email="email:";
      _parent.subject="subject:";
      _parent.message="message:";

      }



      PHP code:



      <?php

      $name = $_GET['name'] ;
      $company = $_GET['company'] ;
      $phone = $_GET['phone'] ;
      $email = $_GET['email'] ;
      $subject = $_GET ['subject'] ;
      $message = $_GET['message'] ;


      $recipient = "XXXXX@hotmail.com" ;

      $subject = "websiterol" . $email;
      $headers = "From:" . $Name . " <" . $email . ">\n";
      $headers .= 'Content-type: text/html; charset=iso-8859-1' ;

      $content = "<html><head><title>Contact form</title></head><body><br>" ;
      $content .= "company <b>" . $company . "</b><br>" ;
      $content .= "name <b>" . $name . "</b><br>" ;
      $content .= "phone <b>" . $phone . "</b><br>" ;
      $content .= "subject <b>" . $subject . "</b><br>" ;
      $content .= "email <b>" . $email . "</b><br><hr><br>" ;
      $content .= $message ;
      $content .= "<br></body></html>" ;

      mail($recipient,$subject,$content,$headers);


      ?>
      <html>
      <body bgcolor="#000000">
      <div align="center" style="margin-top:60px; color:#CCCCCC; font-size:24px; font-family:Tahoma; font-weight:bold">
      Your message was sent. Thank you. </div>
      </body>
      </html>