Hey people;
Ok so heres the deal, im trying to make a mail forum (that sends the user input via e-mail). I have 4 input text fields and 4 combo boxes. I have given the text fields varibles of fname, lname, email and msn and i put varibles of item1, item2, item3 and payment on the combo boxes with the following code:
[COLOR=red]onClipEvent (load) {
var item3;
}[/COLOR]
Ok on the first keyframe (that have all the text boxes & combo boxes in) there is the following code:
[COLOR=red]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;
}[/COLOR]
And on the submit button, there is the following code:
[COLOR=red]on (release) {
if (fname eq “” or lname eq “” or email eq “” or msn eq “” or item1 eq “” or item2 eq “” or item3 eq “” or payment eq “”) {
stop ();
} else {
lineAdapt();
loadVariablesNum (“mail.php3”, 0, “POST”);
gotoAndStop (recived);
}
}[/COLOR]
I also have a php file which contains this code:
[COLOR=red]<?php
mail("myemail@mymail.com", $fname, $lname, $email, $msn, $item1, $item2, $item3, $payment “From: PHPMailer
Reply-To: $from
X-Mailer: PHP/” . phpversion());
?>[/COLOR]
Ok, so it looks alright to me, i uploaded the php file and the flash site file and when you click submit, nothing happens, can anyone help?