# Flash CS3 and PHP

**URL:** <https://forum.kirupa.com/t/flash-cs3-and-php/234781>\
**Category:** flash\
**Created:** [August 6, 2007, 4:19am UTC](https://forum.kirupa.com/t/flash-cs3-and-php/234781 "2007-08-06T04:19:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thumbslinger](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@thumbslinger](https://forum.kirupa.com/u/thumbslinger)\
**Post date:** [August 6, 2007, 4:19am UTC](https://forum.kirupa.com/t/flash-cs3-and-php/234781/1 "2007-08-06T04:19:12Z")

</div>

When submitting form data from Flash to a php script, the playhead doesn’t stop on frame 2 as it should.

The php code I’m using for this test is:  
**Code:**

```php
 
<?
$name = $_POST['fullName'];
$acreage = $_POST['acreage'];
$radioGroup = $_POST['radioGroup'];
$location1 = $_POST['location1'];
$desiredPrice = $_POST['desiredPrice'];
$phone = $_POST['phone'];
$altphone = $_POST['altphone'];
$email = $_POST['email'];
$chat = $_POST['chat'];

$message = "$radioGroup
";
$message .= "$name
";
$message .= "$phone
";
$message .= "$altphone
";
$message .= "$email
";
$message .= "$acreage
";
$message .= "$desiredPrice
";
$message .= "$location1
";
$message .= "$chat
";

$body = $message;

mail('kelly@thumbslinger.com', 'latest chad', $body);
?>

```

The Actionscript in Flash I’m using is this on the submit button:

```
      **Code:**                  

```

on (press) {

function doSubmit()  
{  
userData = new LoadVars();  
userData.fullName = fullName.text;  
userData.desiredPrice = desiredPrice.text;  
userData.acreage = acreage.text;  
userData.phone = phone.text;  
userData.altphone = altphone.text;  
userData.chat = chat.text;  
userData.radioGroup = radioGroup.getValue();  
userData.location1 = location1.getValue();  
userData.send(“chad.php”, “”, “post”);  
}  
doSubmit();

\_root.gotoAndStop(2);  
}

I had the doSubmit on the timeline of frame 2, but it never sent data that way.  
It’s supposed to goto and stop to frame 2 but it pauses on frame 2 and then the screen disappears. I have a stop as you see above and on the main timeline, on frame two, I have this:

```auto
stop();

_root.goBack.onRelease = function() {
    gotoAndStop(1);
}

```

Even taking the stop out of the on(press) doesn’t do anything… it just disappears after the data is sent. Which, works by the way…

Any insights? Thanks
