# Contact form help

**URL:** <https://forum.kirupa.com/t/contact-form-help/307507>\
**Category:** Uncategorized\
**Created:** [April 5, 2010, 4:14am UTC](https://forum.kirupa.com/t/contact-form-help/307507 "2010-04-05T04:14:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy\_brown](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@billy\_brown](https://forum.kirupa.com/u/billy_brown)\
**Post date:** [April 5, 2010, 4:14am UTC](https://forum.kirupa.com/t/contact-form-help/307507/1 "2010-04-05T04:14:50Z")

</div>

I have a contact form created in flash, currently it sends the users name and email to my email address when they click on send but i would like it to be sent to my fanbridge inbox.

[www.fanbridge.com](http://www.fanbridge.com)

Would this be possible to put together? Im guessing i use the fanbridge user ID somewhere in the PHP?? Any help greatly appreciated.

Below is my actionscript and PHP:

stop();

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

sender.OnRelease = function() {  
senderLoad.theName = theName.text;  
senderLoad.theEmail = theEmail.text;  
senderLoad.sendAndLoad(“[http://www.wynnewebdesign.com/manuel/send.php](http://www.wynnewebdesign.com/manuel/send.php)”,receiveLoad);  
}

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

* * *

\<?PHP

$to = "christian.wynne@gmail.com";  
$subject = “Flash Contact Form Submission”;  
$message = “Name: " . $theName;  
$message .= "  
Email: " . $theEmail;  
$headers = “From: $theEmail”;  
$headers .= "  
Reply-To: $theEmail”;

$sentOK = mail($to,$subject,$message,$headers);

echo “sentOk=” . $sentOk;

?\>

Fanbridge have html widgets:

\<form action=“[http://www.fanbridge.com/signup/fansignup\_form.php?userid=13773](http://www.fanbridge.com/signup/fansignup_form.php?userid=13773)” method=“post” style=“margin: 0px;”\>  
\<table border=“1” cellspacing=“0” cellpadding=“5” style=“width:181px;”\>  
\<tr\>  
\<td\>  
\<div align=“center” style=“padding:0px;”\>  
\<p style=“margin: 0px;”\>\<strong\>Signup for our Mailing List\</strong\>\</p\>  
\<p style=“margin: 0px;”\>\<span style=“color: #FF0000”\>_\</span\> required \</p\>  
\</div\>  
\</td\>  
\</tr\>  
\<tr\>  
\<td\>  
\<div align=“left” style=“padding-bottom: 5px;”\>First name:\</div\>  
\<div\>\<input name=“firstname” type=“text” id=“firstname” size=“17”\>\</div\>  
\</td\>  
\</tr\>  
\<tr\>  
\<td\>  
\<div align=“left” style=“padding-bottom: 5px;”\>Last name:\</div\>  
\<div\>\<input name=“lastname” type=“text” id=“lastname” size=“17”\>\</div\>  
\</td\>  
\</tr\>  
\<tr\>  
\<td valign=“top”\>  
\<div align=“left” style=“padding-bottom: 5px;”\>Email \<font color="#FF0000"\>_\</font\>:\</div\>  
\<div\>\<input name=“email” type=“text” id=“email” size=“17”\>\</div\>  
\</td\>  
\</tr\>  
\<tr\>  
\<td\>  
\<div align=“left” style=“padding-bottom: 5px;”\>\<span class=“reportContent”\>Zip:\</span\>\</div\>  
\<div\>\<span class=“reportContent”\>\<input name=“zip” type=“text” id=“zip” size=“5” maxlength=“5”/\>\</span\>\</div\>  
\</td\>  
\</tr\>  
\<tr\>  
\<td align=“center”\>\<input type=“submit” name=“Submit” value=“Add me” /\>\</td\>  
\</tr\>  
\<tr\>  
\<td colspan=“2”\>\<div align=“center”\>\<a href=“[http://www.fanbridge.com/b.php?id=13773&loc=learn&form=1](http://www.fanbridge.com/b.php?id=13773&loc=learn&form=1)”\>Fan list management\<br/\> by FanBridge.com\</a\> \</div\>\</td\>  
\</tr\>  
\</table\>  
\</form\>
