# HELP with PHP email form

**URL:** https://forum.kirupa.com/t/help-with-php-email-form/293282
**Category:** flash
**Created:** [July 26, 2009, 8:39pm UTC](https://forum.kirupa.com/t/help-with-php-email-form/293282 "2009-07-26T20:39:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Snowy\_658](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Snowy\_658](https://forum.kirupa.com/u/Snowy_658)
#### Post date: [July 26, 2009, 8:39pm UTC](https://forum.kirupa.com/t/help-with-php-email-form/293282/1 "2009-07-26T20:39:32Z")

</div>

Here is the code I have in my flash

System.useCodepage = true;  
send\_btn.onRelease = function() {  
my\_vars = new LoadVars();  
my\_vars.sender = email\_box.text;  
my\_vars.subject = sbject\_box.text;  
my\_vars.message = message\_box.text;  
if (my\_vars.sender != “” and my\_vars.subject != “” and my\_vars.message != “”) {  
my\_vars.sendAndLoad(“mailer.php”,my\_vars,“POST”);  
gotoAndStop(2);  
} else {  
error\_clip.gotoAndPlay(2);  
}  
my\_vars.onLoad = function() {  
gotoAndStop(3);  
};  
};  
email\_box.onSetFocus = subject\_box.onSetFocus=message\_box.onSetFocus=function () {  
if (error\_clip.\_currentframe != 1) {  
error\_clip.gotoAndPlay(6);  
}  
};

I need help figuring out how to add the PHP part, I have no idea about how to script it. I looked over some tutorials but I just don’t understand it. I got this code from when I was in college, I used it before but I can’t find the original PHPcode I used. It’s for my website, just a simple email form with a name, email, and message

can you help me out please?
