PDA

View Full Version : flash email form/PHP



tiesto33
August 30th, 2004, 07:19 PM
I've used the tutorial (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 (onClipEvent(data){
_root.nextFrame();
} 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.

CyanBlue
August 31st, 2004, 10:05 AM
Howdy... :)

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

tiesto33
August 31st, 2004, 06:54 PM
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.

CyanBlue
August 31st, 2004, 07:52 PM
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... :)