discula pero la verdad ya no se que hago mal...ahora no me llega nada...este es mi php...
<?
$to = "
[email protected]";
$subject = "Consulta";
$email = $_POST['email'];
$telefonol = $_POST['telefono'];
$nombre = $_POST['nombre'];
$cuerpo = $_POST['cuerpo'];
mail($to, $subject, $msg, "From: $mailfrom");
?>
este es mi codigo en flash, le he agregado lo que me has dicho pero algo estoy haciendo mal
stop();
// --------------------------------------------------------------
// función que valida números
// --------------------------------------------------------------
String.prototype.isNumbers = function() {
if (this.length<1) {
return false;
}
for (i=0; i<this.length; i++) {
code = this.charCodeAt(i);
if (this.charAt(i) != " " && code<48 || code>57) {
return false;
}
}
return true;
};
// --------------------------------------------------------------
// valida mails
// --------------------------------------------------------------
String.prototype.isMail = function() {
if (this.indexOf("@")>0 && this.indexOf("@") == this.lastIndexOf("@")) {
if (this.lastIndexOf(".")>this.indexOf("@")+1 && this.lastIndexOf(".")<this.length-2) {
return true;
}
}
};
// --------------------------------------------------------------
// función que limpia los campos
// --------------------------------------------------------------
function limpiar() {
nom = "";
telefono = "";
numeros = "";
carros = "";
mailFrom = "";
body = "";
mensaje_error =""
}
// --
nombre.tabIndex = 1;
tel.tabIndex = 2;
mail.tabIndex = 3;
msg.tabIndex = 4;
numeros.tabIndex = 5;
carros.tabIndex = 6;
// --
nombre.borderColor = 0xE7EFF7;
tel.borderColor = 0xE7EFF7;
mail.borderColor = 0xE7EFF7;
msg.borderColor = 0xE7EFF7;
//
nombre.onSetFocus = function() {
mensaje_error = "";
nombre.backgroundColor = 0xE7EFF7;
nombre.borderColor = 0x4A869C;
};
nombre.onKillFocus = function() {
nombre.backgroundColor = 0xFFFFFF;
nombre.borderColor = 0xE7EFF7;
};
// --
tel.onSetFocus = function() {
mensaje_error = "";
tel.backgroundColor = 0xE7EFF7;
tel.borderColor = 0x4A869C;
};
tel.onKillFocus = function() {
tel.backgroundColor = 0xFFFFFF;
tel.borderColor = 0xE7EFF7;
};
//
mail.onSetFocus = function() {
mensaje_error = "";
mail.backgroundColor = 0xE7EFF7;
mail.borderColor = 0x4A869C;
};
mail.onKillFocus = function() {
mail.backgroundColor = 0xFFFFFF;
mail.borderColor = 0xE7EFF7;
};
//
msg.onSetFocus = function() {
mensaje_error = "";
msg.backgroundColor = 0xE7EFF7;
msg.borderColor = 0x4A869C;
};
msg.onKillFocus = function() {
msg.backgroundColor = 0xFFFFFF;
msg.borderColor = 0xE7EFF7;
};
///
var miLV:LoadVars = new LoadVars();
//
bEnviar.onRollOver = bLimpiar.onRollOver=function () {
this.gotoAndPlay("sobre");
};
bEnviar.onRelease = function() {
//if (nom.length<1) {
mensaje_error = "Por favor introduzca su nombre";
//} else if (telefono.length<1 or telefono.isnumbers() == false) {
mensaje_error = "Por favor, introduzca un teléfono de contacto";
//} else if (!mail.text.isMail()) {
mensaje_error = "Por favor, introduzca e-mail válido";
//} else {
//loadVariablesNum("form.php", 0, "POST");
miLV.email= mail.text;
miLV.tel= telefono.text;
miLV.nombre= nom.text;
miLV.mail= mailfrom.text;
miLV.numeros= numeros.Number;
miLV.carros= carros.text;
miLV.cuerpo= body.text //y los otros que tengas
miLV.sendAndLoad("form.php",miLV,"POST");
mensaje_error = "Mensaje enviado";
//}
};
//Luego de un evento sendAndLoad o load de loadVars se ejecuta onLoad.
miLV.onLoad = function (exito:Boolean){
if (exito){
mensaje_error.text="Mensaje enviado

";
} else{
mensaje_error.text="error en el envio de correo

";
trace("fuck error en el script php");
}
}
// --
bLimpiar.onRelease = function() {
limpiar();
};