Contact Form

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 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;';

}

?>