Hola amigos:
Quisiera agregar a este form mas campos que los tres que tiene, es decir adem'as de "subject", "message" y "e-mail" quiero agregar: "name", "address", "phone no", etc ...
tengo el codigo:
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)) add "\n" add (substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
y en el boton "send":
on (release) {
if (subject eq "" or message eq "" or from eq "") {
stop();
} else {
lineAdapt();
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(2);
}
}
el php es:
<?php
mail("[email protected]", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
Mi pregunta es ademas de poner campos dinamicos con sus respectivos nombres de variables, donde modificaria el as del form y el php file.
Desde ya muchas gracias !!!!!!