1 Reply Latest reply on Jul 21, 2011 6:54 AM by Darshan Rane

    What Am I Doing Wrong? PHP Form


      I created a form in flash for my website and am using php to send the  inputted info to my email. I'm not too familiar with php, so my friend  gave me the code to host on my ftp alongside my swf file. Only problem  is, the info inputted into the form is not emailed when I hit submit on  the form.  Is there something I need to do to my fla file to tell it to execute the php script? Let me know if you need any additional info, but here is the  exact code I'm using, except i've changed the email:



      $FirstName = $_REQUEST["FirstName"];
      $LastName = $_REQUEST["LastName"];
      $Age = $_REQUEST["Age"];
      $Phone = $_REQUEST["Phone"];
      $Email = $_REQUEST["Email"];
      $Zip = $_REQUEST["Zip"];
      $Background = $_REQUEST["Background"];
      $DatesTimes = $_REQUEST["DatesTimes"];

      $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
      $message= $full_message;

      if(isset($FirstName)  and isset($LastName) and isset($Age) and isset($Phone) and  isset($Email) and isset($Zip) and isset($Background) and  isset($DatesTimes)){
      mail("xx@example.com", $FirstName, $LastName, $Age, $Phone, $Email, $Zip, $Background, $DatesTimes, "From: $sender");