Whenever I click the "send" button, I get a blank email. I've tried changing the variables in mail.php, and it works, I've also checked for capitalization errors and such there – I think that means the trouble is somewhere in the actionscript.
I'm using actionscript 2.0 and this is the code in the frame:
The button has this code:
On the stage there are four input boxes with the variables "from", "navn", "subject" and "message"
What have I done wrong? Explain slowly please :l
illustration and graphic design
I'm using actionscript 2.0 and this is the code in the frame:
Code:
subject="";
message="";
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)) add "\n" add (substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
The button has this code:
Code:
on (release) {
navn=navn.split(" ").join("_")
if (subject eq "" or messag eq "" or from eq "" or navn eq "") {
stop();
} else {
lineAdapt();
loadVariablesNum("mail.php", 0, "POST");
nextFrame();
}
}
On the stage there are four input boxes with the variables "from", "navn", "subject" and "message"
What have I done wrong? Explain slowly please :l
illustration and graphic design