# Basic Flash/PHP Mailer Question

**URL:** <https://forum.kirupa.com/t/basic-flash-php-mailer-question/314259>\
**Category:** flash\
**Created:** [September 23, 2010, 1:29am UTC](https://forum.kirupa.com/t/basic-flash-php-mailer-question/314259 "2010-09-23T01:29:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilan2912](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@ilan2912](https://forum.kirupa.com/u/ilan2912)\
**Post date:** [September 23, 2010, 1:29am UTC](https://forum.kirupa.com/t/basic-flash-php-mailer-question/314259/1 "2010-09-23T01:29:01Z")

</div>

Hi,

I’m creating my first Flash website using AS3, and it’s really basic. I would like to put in a contact form, which I have made. I’ve converted the 3 fields (name\_field, email\_field and message\_field) to a symbol (movie) called ‘form’. I’ve also got a send button, which is called send\_btn.

I’ve set up the Action Script so that when the button is clicked, the user is taken to a confirmation-style page. All I want to do is called a php script (I’m comfortable with the code for that) called ‘mailer.php’ and send the three variables from the form to it before then loading the confirmation page.

I know this is simple, and there’s lots out there, but I just can’t get it working, so I’m hoping someone can help.

Here is the code for the frame as it stands at the moment:

function goContactSent (e:MouseEvent):void{   
gotoAndPlay(“Contact\_Sent”);  
}  
send\_btn.addEventListener(MouseEvent.CLICK, goContactSent);

Thanks,

Ilan
