# Flash/PHP contact form?

**URL:** <https://forum.kirupa.com/t/flash-php-contact-form/252485>\
**Category:** Uncategorized\
**Created:** [February 20, 2008, 4:26pm UTC](https://forum.kirupa.com/t/flash-php-contact-form/252485 "2008-02-20T16:26:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gage08](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@gage08](https://forum.kirupa.com/u/gage08)\
**Post date:** [February 20, 2008, 4:26pm UTC](https://forum.kirupa.com/t/flash-php-contact-form/252485/1 "2008-02-20T16:26:49Z")

</div>

Hi!  
I’m a complete newbie to PHP.  
This is my first attempt at even trying to understand the language, and I am STUCK!!  
I created a form in FLASH and did all the actionscript, then I created my PHP page, but I think I have some “issues” becuase though it does send the emails, there is no content AND when I hit the send button it doesn’t jump to the message sent frame I created, can anyone help?

Here is my Actionscript:

stop();

var senderLoad:LoadVars = new LoadVars();  
var receiveLoad:LoadVars = new LoadVars();

send.onRelease = function() {  
senderload.how = how.getSelectedItem().thename;  
senderload.how = how.getSelectedItem().email;  
senderload.how = how.getSelectedItem().phone;  
senderload.how = how.getSelectedItem().email;  
senderload.how = how.getSelectedItem().how;  
senderload.how = how.getSelectedItem().other;  
senderload.how = how.getSelectedItem().referral;  
senderload.april = radioGroup.selection.data  
senderload.may = radioGroup.selection.data  
senderload.how = how.getSelectedItem().seats;  
senderLoad.comments = comments.text;  
senderLoad.sendAndLoad(“[http://www.basiqs.com/sacred/contact.php](http://www.basiqs.com/sacred/contact.php)”,receiveLoad);  
}

receiveLoad.onLoad = function() {  
if(this.sentOk) {  
\_root.gotoAndStop(“success”);  
}  
else {  
\_root.gotoAndStop(“failed”);  
}  
}

Here is my PHP:

\<?php  
$sendTo = "gage@basiqs.com";  
$subject = “Sacred Actor Contact Form”;  
$headers = "From: " . $\_POST[“thename”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“Email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“Email”];  
$headers .= “\<” . $\_POST[“phone”] . "\>  
";  
$headers .= “\<” . $\_POST[“how”] . "\>  
";  
$headers .= “\<” . $\_POST[“other”] . "\>  
“;  
$headers .= “\<” . $\_POST[“referral”] . “\>  
“;  
$headers .= “\<” . $\_POST[“referral”] . “\>  
“;  
$message .= "  
seminar April:”. $april;  
$message .= "  
seminar may:”. $may;  
$message .= "  
seats:”. $one;  
$message .= "  
seats:”. $two;  
$message .= "  
seats:”. $three;  
$message .= "

comments:". $comments;  
$headers = “from: $email”;  
$headers .= "  
Reply-To: $email";  
$sentOk = mail($to,$subject,$message,$headers);  
echo “sentOk=” . $sentOk;  
?\>

Please for the love of God can someone help me???  
 ![](http://www.phpbuilder.com/board/images/smilies/confused.gif)
