Simple Help Needed With A Flash Template: Maybe PHP?

  • Thread starter Thread starter turkisstory
  • Start date Start date
T

turkisstory

Guest
Hi, I just purchased a Flash Template, and after 2 days of messing around, I'm just getting the hang of Flash. I'm stuck on the Contact Form page though. What or how do I make it so it is programed to send the Information submitted into the form go to my email address?

It has "Name", "Your Email Address" "Subject" "Message"

I'm a noob to websites-ish... I'm not to good with coding, so if anyone has a script or anything that I need to add.

I'm using Macromedia Flash MX 2004 to edit the template. Thanks!
 
Assuming you have mail setup (SMTP) on your server.
set your form action to sendmail.php
here is the code you need to add to sendmail.php file.
<?php
$from=$_REQUEST['Name'];
$to=$_REQUEST['recieversemail'];
$message=$_REQUEST['Message'];
$subject=$_REQUEST['Subject'];
$headers="From: ".$_REQUEST['Senders Email Address'];
mail($to,$subject,$message,$headers);
?>
Thats it!
Remember Name, recieversemail, Subject, Sender's Email address need to be replaced by the names of controls set in form for each , respectively.
 
Back
Top