# Flash-Based Email Form Using PHP

**URL:** <https://forum.kirupa.com/t/flash-based-email-form-using-php/111353>\
**Category:** Uncategorized\
**Created:** [May 26, 2004, 3:44am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353 "2004-05-26T03:44:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cardjorg](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cardjorg](https://forum.kirupa.com/u/cardjorg)\
**Post date:** [May 26, 2004, 3:44am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/1 "2004-05-26T03:44:46Z")

</div>

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](http://www.kirupa.com/developer/actionscript/flash_php_email.htm)

Thanks, 🙂

---

<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:** [May 26, 2004, 3:45am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/2 "2004-05-26T03:45:25Z")

</div>

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

---

<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:** [May 26, 2004, 3:47am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/3 "2004-05-26T03:47:11Z")

</div>

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

---

<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:** [May 26, 2004, 4:08am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/4 "2004-05-26T04:08:01Z")

</div>

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?

---

<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:** [May 26, 2004, 4:10am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/5 "2004-05-26T04:10:38Z")

</div>

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

---

<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:** [May 26, 2004, 4:34am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/6 "2004-05-26T04:34:00Z")

</div>

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. 😉

---

<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:** [May 26, 2004, 4:55am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/7 "2004-05-26T04:55:04Z")

</div>

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

---

<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:** [May 26, 2004, 5:04am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/8 "2004-05-26T05:04:04Z")

</div>

> [@ditchhopper](#):
>
> 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?

---

<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:** [May 26, 2004, 5:05am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/9 "2004-05-26T05:05:11Z")

</div>

> [@ditchhopper](#):
>
> 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?

[http://www.kirupaforum.com/forums/showthread.php?t=57085](http://www.kirupaforum.com/forums/showthread.php?t=57085)

---

<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:** [May 26, 2004, 5:25am UTC](https://forum.kirupa.com/t/flash-based-email-form-using-php/111353/10 "2004-05-26T05:25:36Z")

</div>

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