Flash-Based Email Form Using PHP

Hello people,

I followed the tutorial of Flash-Based Email Form Using PHP but i tested and it didn’t worked can anyone show me an allready compleated one to compare it with the one i did
/////tut/////
http://www.kirupa.com/developer/actionscript/flash_php_email.htm

Thanks, :slight_smile:

you sure your running it on a server that supports php?

Yap its on the server of my ISP and he toldme it supports PHP :slight_smile:

That tutorial worked fine for me. Did you change any code? Try uploading the tutorial swf to your server along with the modified email.php and sending yourself an email from it. If it doesnt work from there php support is most likely the problem.

I did have a problem when I added some code to the “send” button. Moved it elsewhere and it worked fine again.

Does anyone know how to keep it from sending blank emails if someone hits the send button without putting any content in?

put an if statement in the button to check to see if the form field variables are “” or if they have content

Its amazing how quickly actionscript escapes from my brain when I havent used it in a couple months.

An “if” statement you say… sounds logical. Im just gonna pretend like I remember how to do that. :wink:

I’ll try to move the script in the button somewhere else and see what happens

http://www.kirupaforum.com/forums/showthread.php?t=57085

Hey, thanks Digital. Thats just what I needed. :thumb: