# Flash email form/PHP

**URL:** <https://forum.kirupa.com/t/flash-email-form-php/62735>\
**Category:** Uncategorized\
**Created:** [August 30, 2004, 11:19pm UTC](https://forum.kirupa.com/t/flash-email-form-php/62735 "2004-08-30T23:19:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiesto33](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@tiesto33](https://forum.kirupa.com/u/tiesto33)\
**Post date:** [August 30, 2004, 11:19pm UTC](https://forum.kirupa.com/t/flash-email-form-php/62735/1 "2004-08-30T23:19:12Z")

</div>

I’ve used the [[color=black]tutorial[/color] ](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)to create a simple “flash based email form using PHP” and have some minor problems after submiting the info. I do receive the info via email successfully but it does not go to the next frame ([font=Courier New][color=#003366]onClipEvent(data){  
\_root.nextFrame();  
}[/color][/font] showing the text" message sent…thx" keyframe. When previewed in Flash it does go to the next keyframe but but via server.  
Not sure if its something in the PHP code or the .fla.  
My web server uses PHP 3 and 4.

thx.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2004, 2:05pm UTC](https://forum.kirupa.com/t/flash-email-form-php/62735/2 "2004-08-31T14:05:16Z")

</div>

Howdy… 🙂

You could try to change the commented line to the LoadVars() object…

```php

//form.loadVariables("email.php", "POST"); 
email_lv = new LoadVars();
email_lv.name = form.name;
email_lv.email = form.email;
email_lv.message = form.message;
email_lv.onLoad = function (ok)
{
	 if (ok)
	 {
		  _root.nextFrame();
	 }
}
email_lv.sendAndLoad("email.php", email_lv, "POST"); 

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2004, 10:54pm UTC](https://forum.kirupa.com/t/flash-email-form-php/62735/3 "2004-08-31T22:54:51Z")

</div>

Thx CyanBlue. It now works.

Any recommendations on books regarding PHP/flash for beginners like me. I just got the foundation PHP for Flash with AS 1.0.

thx.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 31, 2004, 11:52pm UTC](https://forum.kirupa.com/t/flash-email-form-php/62735/4 "2004-08-31T23:52:31Z")

</div>

That’s got to be a good book to start with… Also, check out the PHP manual and Flash manual which are pretty much the best you can get… 🙂
