Ryall
November 19th, 2002, 02:21 PM
Ok heres the deal: I have a comments form and it works fine on the site I origonally made it for - now using it on a new site it doesnt, this may be an MX issue, but I cant figure it out heres what I am using:
Main Action Frame of Form:
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))+"\n"+(substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
Action for Submit Button:
on (release) {
if (name eq "" or comments eq "") {
gotoAndStop(2);
} else {
loadVariablesNum("comments.php", 0, "POST");
gotoAndStop(3);
}
}
PHP Script on my server:
<?php
mail(rwalsh@grafikdesigns.com, "Comments/Questions from $name", "Information Submitted By User:\n\nName: $name\n Date: $date\n Phone Number: $phone\n Email: $email\n Questions/Comments: $comments", "From: $email\nReply-To: $email\nX-Mailer: PHP/" . phpversion());
?>
Thanks for you help people - I just cant seem to see whats wrong!!
Peace
Main Action Frame of Form:
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))+"\n"+(substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
Action for Submit Button:
on (release) {
if (name eq "" or comments eq "") {
gotoAndStop(2);
} else {
loadVariablesNum("comments.php", 0, "POST");
gotoAndStop(3);
}
}
PHP Script on my server:
<?php
mail(rwalsh@grafikdesigns.com, "Comments/Questions from $name", "Information Submitted By User:\n\nName: $name\n Date: $date\n Phone Number: $phone\n Email: $email\n Questions/Comments: $comments", "From: $email\nReply-To: $email\nX-Mailer: PHP/" . phpversion());
?>
Thanks for you help people - I just cant seem to see whats wrong!!
Peace