# Contact Form

**URL:** <https://forum.kirupa.com/t/contact-form/255236>\
**Category:** Uncategorized\
**Created:** [March 20, 2008, 11:11am UTC](https://forum.kirupa.com/t/contact-form/255236 "2008-03-20T11:11:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![P\_niX](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@P\_niX](https://forum.kirupa.com/u/P_niX)\
**Post date:** [March 20, 2008, 11:11am UTC](https://forum.kirupa.com/t/contact-form/255236/1 "2008-03-20T11:11:07Z")

</div>

Hi everyone,

This is my problem.  
I have created a contact form.  
Which doesn’t seem to work. I have followed the kirupa tutorial and several others and i have the same problem with all. I even tried uploading the files provided from the kirupa tutorial about sending a mail through a flash form and it doesnt work as well. I did exactly what the tutorial says with the php file and everything. The result is…when i click on the send button…it takes me straight to the “Message successfully send” frame and at the bottom of the browser it says “Waiting for [www.blah](http://www.blah) blah blah …” but the message is never send. It just gets stuck there. If i click on another tab on my browser and then click on the one with the form again…at the bottom it says “done”.  
I tested to see if the server does not support php but it actually does. Also in the email.php file i added a javascript code to throw me an alert message to see if when i press the send button the .php file is loaded but the alert message doesnt show up. I guess that the .php file is actually never loaded (or maybe not).

Any suggestions are welcome.

I cant really make the file be 76kb in order to uploaded but here are some info:

I have a send button where the following code exists

on (release) {  
if (name eq “” or message eq “” or email eq “”) {  
stop();  
} else {  
lineAdapt();  
loadVariablesNum(“email.php”, 0, “POST”);  
gotoAndStop(2);  
}  
}

On the form frames i have the following:

stop();  
function lineAdapt() {  
message\_send = message;  
while (msg\_count\<length(message)) {  
msg\_count = msg\_count+1;  
if ((substring(message\_send, msg\_count, 2)) eq “\r”) {  
message\_send = (substring(message\_send, 1, msg\_count-2)) + "  
" + (substring(message\_send, msg\_count+2, (length(message\_send))-msg\_count+2));  
}  
}  
message = message\_send;  
delete msg\_count;  
delete message\_send;  
}

My three fields have names name, message and email.

and the content of the php file is:

\<?php

$subject = “My Flash site reply”;

if(mail("Mailhere@hotmail.com",$subject,$message,“From:$email / Name: $name”)) {

```
    echo '&lt;script type="text/javascript"&gt;' . "

```

";

```
    echo 'alert("Message has been successfully sent");';
    
    echo '&lt;/script&gt;';
}
else
{
    echo '&lt;script type="text/javascript"&gt;' . "

```

";

```
    echo 'alert("Failed at sending message");';

    echo '&lt;/script&gt;';

}

```

?\>
