# \[AS2\] Need Help with: Kirupa's Flash PHP Email

**URL:** <https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604>\
**Category:** flash\
**Created:** [May 29, 2008, 7:12am UTC](https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604 "2008-05-29T07:12:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tailz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tailz/32/7262_2.png) [@tailz](https://forum.kirupa.com/u/tailz)\
**Post date:** [May 29, 2008, 7:12am UTC](https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604/1 "2008-05-29T07:12:34Z")

</div>

Hello, I am trying to make an email form following the guide given in “Kirupa\_flash\_php\_email” example in the flash guides section of this web site. Now I can get it to work, eg: send me an email. But it does not go to the next frame to show the thankyou message (eg: frame 2).

I thought, the following code…

```auto
onClipEvent(data){
 // show welcome screen
 _root.nextFrame();
}

```

…must not work in ActionScript 2 since the demo is made in ActionScript 1. So I took it out and put a gotoAndStop(2); function on my submit button. But with that code gone, when I click the submit button, it switches to frame 2 to display the thankyou message, but it does not send the email…

I added the code back in, so that it sends the email, but it does not go to frame two.

Where am I going wrong? :crying:

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 29, 2008, 9:46am UTC](https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604/2 "2008-05-29T09:46:39Z")

</div>

use Loadvars to send data to server with sendandload method… so setting up a onLoad handler for incoming reply setup the code gotoAndStop(“frame”);

Action script 1.0 will always work in action script 2.0 as well but not vice versa

---

<div class="post-metadata">

**Author:** ![tailz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tailz/32/7262_2.png) [@tailz](https://forum.kirupa.com/u/tailz)\
**Post date:** [May 29, 2008, 11:24pm UTC](https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604/3 "2008-05-29T23:24:39Z")

</div>

there is not incomming reply from the PHP script back to my Flash Animation. All I simply want it to do is send the data in the email form to the php script (which then sends the data off as an email), once the Flash animation has sent the data, it should go to frame 2 in the timeline.

BTW: To see the sample I am working from, click here to view [Kirupa’s, Flash-Based Email Form Using PHP](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)

---

<div class="post-metadata">

**Author:** ![tailz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tailz/32/7262_2.png) [@tailz](https://forum.kirupa.com/u/tailz)\
**Post date:** [May 30, 2008, 2:33am UTC](https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604/4 "2008-05-30T02:33:53Z")

</div>

Nevermind, I figured out my problem. But thanks all the same.
