# Email PHP inside a movie clip

**URL:** <https://forum.kirupa.com/t/email-php-inside-a-movie-clip/195573>\
**Category:** Uncategorized\
**Created:** [August 1, 2006, 5:48pm UTC](https://forum.kirupa.com/t/email-php-inside-a-movie-clip/195573 "2006-08-01T17:48:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fenomnon64](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fenomnon64](https://forum.kirupa.com/u/fenomnon64)\
**Post date:** [August 1, 2006, 5:48pm UTC](https://forum.kirupa.com/t/email-php-inside-a-movie-clip/195573/1 "2006-08-01T17:48:20Z")

</div>

Hey guys,  
I am almost done with my site, I just have 1 more problem that I need to fix. I am trying to setup an email contact form. I followed a tutorial on [gotoandlearn.com](http://gotoandlearn.com) and made a form step by step, unfortunately the dynamic text and send button are inside a movie clip and I am not sure how I can get this to work. here is the script that is within the movie clip.  
:book:

* * *

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

\_root.slider\_mc.sender.onRelease = function() {  
senderLoad.theName = theName.text;  
senderLoad.theEmail = theEmail.text;  
senderLoad.theMessage = theMessage.text;  
senderLoad.sendAndLoad(“[http://chriscerros.com/send.php](http://chriscerros.com/send.php)”,receiveLoad);  
}

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

* * *

basically the whole email is in a movie clip. I am just not sure how to control it from the main timeline. it is in an MC called “contact\_mc”. :wasted:  
any help would be appreciated, thanks guys :thumb2:

If you need a better idea on what I am trying to do:

[http://www.chriscerros.com/c\_design\_website/site.html](http://www.chriscerros.com/c_design_website/site.html)

click on the “CONTACT” , it is a movie clip.
