# Help With A Broken Button

**URL:** https://forum.kirupa.com/t/help-with-a-broken-button/277534
**Category:** flash
**Created:** [December 13, 2008, 5:38am UTC](https://forum.kirupa.com/t/help-with-a-broken-button/277534 "2008-12-13T05:38:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![guitar8101](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guitar8101](https://forum.kirupa.com/u/guitar8101)
#### Post date: [December 13, 2008, 5:38am UTC](https://forum.kirupa.com/t/help-with-a-broken-button/277534/1 "2008-12-13T05:38:41Z")

</div>

I have an email form on my flash site that I use with php. I have the web site set up to where my index file loads pages 1 through 7 in to a container. When I just load page 7 without loading it through the index, the email form works. But when I view page 7 by loading the index the send button to the email form does nothing. I am guessing this is just a problem with changing the button actionscript but for some reason I can’t fix it. Would I have to place “\_parent” in the code since I’m now loading from within another swf? Any help would be greatly appreciated.

Here is the actionscript on the Send button.

```auto
on (release) {
    form.loadVariables("email.php", "POST");
}

```

and here is the php file

```auto

<?php

$sendTo = "info@mydomain.com";
$subject = "Email From Web Page";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);

?>

```
