PDA

View Full Version : Creating an email form using PHP from Flash



chiefashley
03-19-2007, 08:52 PM
Hello,

I need help! and i knew this would be the best place to come...

I am doing a website in flash and am having trouble getting the contact form to work.

I've made my contact page with input fields for name, email and message, and named them t1, t2, and t3

This is the code I'm working with, and I'm not quite sure I understand it...

<?
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail($_GET['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>

<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>


can you help?

Thanks!

Vampy
03-20-2007, 11:06 AM
That's the first reason I joined the forum ...

I am waiting .. for ... some help on this matter ...

i have found something on a site.. a flash contact form combined with php .. but it did not work for me ...

ProMaster001
07-13-2007, 02:18 PM
I was looking for the same thing! I found this page:

http://www.thegoldenmean.com/technique/flashMX_mailform5.html#projectfiles

Hope it works out.

Medyman
07-13-2007, 03:58 PM
Here is a video tutorial (flv format) that will walk you through it, piece by piece:

Tutorial & FLV Player by Lee Brimelow (www.demos.designsbyvishal.com/dynamicdrive/gotoAndLearn.zip)