Hi,
I had the same problems as you have at the moment with flash and php. Have you designed the form? Linked the fields to variable names etc?
The php code I used was:
<html>
<body>
<?php
$ToEmail = "northls@nbkayaking.com";
$ToSubject = “Enquiry”;
$BrowserType = $HTTP_USER_AGENT;
$MediaTypes = $HTTP_ACCEPT;
$ServerName= $REMOTE_ADDR;
$EmailBody = "Sent By: $FirstName
Senders Email: $Email
Message Sent:
$ToComments
$BrowserType
$MediaTypes
$ServerName";
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, “From: “.$FirstName.” <”.$Email.">");
?>
</body>
</html>
The method is as follows:
(If you need actionscript for the send button then let me know)
copy the php code to your mail server in the same folder as your html and swf files and call it mailPHP.php
before doing this however you need to change a few bits in the php code.
In the above code $email, $FirstName and $comments are all php variables passed values through flash, i.e. I have in my form three text boxes, with the variable names email,FirstName and Comments, get the idea.
In order for the code to work on your project we need to make sure that the variable fields in flash are captured by the php code.
Don’t worry about the rest of the php code, we can tailor that later to capture things such as browser type of the person that filled out the info and dates and times etc.
I am new to php and flash and only figured this out through trial and research. I can help you as much as you need it, but first make sure the form is ready to go, with variable names assigned etc. Why not post the variable names so we can start building the php code.
My knowledge is not limitless but I can get you up and running