FORUMS: list search recent posts

Flash enquiry form php and html!

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
dan herrington
Flash enquiry form php and html!
on Aug 21, 2009 at 10:15:09 am


Can someone please help! Im a complete novice to all this as im just starting to learn flash, php.

I have a site which has an enquiry form created in flash which is to be inserted into a html page. I have created a php file but when I click on the submit button, nothing happens.......

This is the Action script I have attached to the button in flash:

on (release) {

And this is the php script:

$sendTo = "";
$subject = "Mammoth Enquiry";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["subject"];
$message = $_POST["enquiry"];
mail($sendTo, $subject, $message, $headers);

The email.php file is saved in the same directory as the flash/swf file link to my html page. Is that correct? And do I need to link the php file by inserting any script to the html page?

Sorry for all the questions, have tried to find an answer but I just cant get it to work!

Thank you in advance.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved