Hello, I am having some difficulties with a PHP contact form and I was hoping someone could give me some advice to get through this problem.
In the past I've used formmail.php in an HTML site and it worked fine, but now I want to use it in a Flash site and I can't make it work. I tested the site in another server and it works, so I thought that maybe there was a problem with the permissions, but I couldn't find anything wrong there. This is the programming I'm using:
In Flash:
bEnviar.onRelease = function() {
if (nom.length<1) {
mensaje_error = "Por favor ingrese su nombre.";
} else if (!mail.text.isMail()) {
mensaje_error = "Por favor ingrese un e-mail valido.";
} else {
loadVariablesNum("form.php", 0, "POST");
limpiar();
mensaje_error = "Gracias!";
}
};
The PHP code:
<?
$to = "info@mydomain.com";
$subject = "subject";
$msg .= "$nom, le envia el siguiente mensaje:\n\n";
$msg .= "E-mail: $mailfrom\n";
$msg .= "Comments: $body\n";
mail($to, $subject, $msg, "From:". $mailfrom);
sleep(3);
?>
Please, if anyone can help me out I would appretiate it a lot!
Thanks in advance!


LinkBack URL
About LinkBacks



Reply With Quote
