Flash email form/PHP

I’ve used the [color=black]tutorial[/color] 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.

Howdy… :slight_smile:

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


//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"); 

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.

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… :slight_smile: