and on the submit button i added this code:
on (release) {
if (name eq “” || contact eq “” || title eq “” || message eq “” ) {
info = “Please fill in all fields”;
stop();
} else {
loadVariablesNum(“send.php”, 0, “POST”);
nextFrame();
name = “”;
contact = “”;
title = “”;
message = “”;
info = “”;
}
}
The send.php file is like:
<?
$headers = “From: $name”;
mail("dh@designers-hub.com", “$headers”, “$title”, “$contact”, “$message”);
?>
For some reason when it sends it doesn;t send the $message…
There are some errors in your PHP file. You’re trying to use a variable like this “$headers”. That won’t use the value of the variable $headers, it will use the string “$headers”. So get rid of the quotes around your variable names.
Same thing for
$headers = "From: $name"
, which should be
$headers = "From : ".$name
. You might also want to have it jump to the next line, using “
”.