This should be a easy fix, but I dont know how to get the vars form the parent level, then I did something stupid like the following:
Code:
on (release) {
if (_root.contact_form.t2 eq "" or _root.contact_form.t4 eq "" or _root.contact_form.t5 eq "") {
stop ();
} else {
name = _root.contact_form.t2.text;
message = _root.contact_form.t4.text;
loadVariablesNum ("submit.php?t2_2=" + name + "&t4_2=" + message, 0, "GET");
//trace ("test");
_root.contact_form.gotoAndStop(2);
}
}
It's working, I captured the vars from the parent and use GET, but there must be the way to just use POST to get all the vars.
Here is submit.php:
Code:
$to = "webmaster@1000knots.net";
$subject = "Web Contact form";
$headers="From: webmaster<webmaster@1000knots.net>\r\n";
$headers.='Content-type: text/html';
$msg = "$t2_2\n\n";
$msg .= "$t4_2\n\n";
mail($to, $subject, $msg, $headers);
I will Google and if anyone knows, please help me.
Thanks.
Bookmarks