Hi guys, I know I’m new here but, I need help…
So here’s my problem I am currently making a payment form but not every thing is being seperated properly it does for most of it but the last few lines are all run in together in the e-mail there’s nothing that needs changing in the php side of it this I know. Here is the code:
stop();
System.useCodepage = true;
send_btn.onRelease = function() {
my_vars = new LoadVars();
my_vars.sender = email_box.text;
my_vars.subject = subject_box.text + header.text;
my_vars.message = ipad.text + br.text + br.text + br.text + n_n.text + subject_box.text + br.text + v_n.text + vorname_box.text + br.text + s_n.text + strasse_box.text + br.text + o_n.text + ort_box.text + br.text + t_n.text + telefon_box.text + br.text + an_n.text + antag_box.text + sl_n.text + anmonat_box.text + sl_n.text + anjahr_box.text + br.text + ab_n.text + abtag_box.text + sl_n.text + abmonat_box.text + sl_n.text + abjahr_box.text + br.text + e_n.text + erwachsener_box.text + br.text + k_n.text + kinder_box.text + combo.text + name_box.text + card_box.text + ccn_box.text + stoe_box.text + br.text + kom_n.text + message_box.text;
if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {
my_vars.sendAndLoad("mailer.php", my_vars, "POST");
gotoAndStop(3);
} else {
gotoAndStop("warning");
}
my_vars.onLoad = function() {
gotoAndPlay(4);
};
};
email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=vorname_box.onSetFocus=ort_box.onSetFocus=telefon_box.onSetFocus=erwachsener_box.onSetFocus=kinder_box.onSetFocus=antag_box.onSetFocus=anmonat_box.onSetFocus=anjahr_box.onSetFocus=abtag_box.onSetFocus=abmonat_box.onSetFocus=abjahr_box.onSetFocus=combo.onSetFocus=name_box.onSetFocus=card_box.onSetFocus=ccn_box.onSetFocus=stoe_box=onSetFocus=function () {
if (error_clip._currentframe != 1) {
error_clip.gotoAndPlay("stop");
}
};
Here’s the php back end for those who might still have any doubts that it’s the php:
<?
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$to = "info@copabanana.com.au";
$msg = "$name
";
$msg .= "$message
";
mail($to, $subject, $msg, "From: &name
Reply-To: $email
");
?>
Thank you in advance for any help.