Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/11/2009, 14:50
SeNdEr2003
 
Fecha de Ingreso: agosto-2003
Mensajes: 906
Antigüedad: 20 años, 8 meses
Puntos: 3
Respuesta: Formulario me llega dos veces!!

Esto es todo lo que tiene:

Código PHP:
              <script language=javascript>
function closer() {
var ventana = window.self;
ventana.opener = window.self;
ventana.close();

function limpiar(field) {
       field.reset();         //con esto reinicias todo el form
}
</script>
<?
$name 
$_POST["from_name"]; 
$from_email_address $_POST["from_email_address"];

//entonces ahora incluimos las variables en el mensaje 

$mensaje1 .="Name: "$name ."\n"
$mensaje1 .="E-Mail: ".$from_email_address." \n"

$receptor "[email protected]"// el mail que recibe los datos
$mensaje2 .="Dear "$name ."\n"."
blah blah 
"
;
$recipient2 $from_email_address;

$subject "Sign Up!"// asunto del mail
//$mailheaders .= "Bcc: [email protected]\r\n";  
$mailheaders .= "From:[email protected]"// quien envia el correo, el from
mail($receptor$subject$mensaje1$mailheaders);// enviamos el mail!
mail($recipient2"Thank You!"$mensaje2$mailheaders);
?>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #333333;
    background-color: #F4F4F4;
    margin: 0px;
}
.contain {
    width: 196px;
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
    font-weight: bold;
}
.contain a {
    color: #666666;
}
-->
</style>
</head>

<body onLoad="limpiar(window.opener.document.getElementById('form3'))">
<div align="center" class="contain"><br />
<br />

Thanks You<br />
<br />
<A href="javascript: self.close ()">Close this window</A> <br />
<br />
<br />
</div>
</body>
</html>
el form de donde recibe:

Código PHP:
<form action="singup-thanks-you.php" method="post" id="form3" target="pepe" name="disponible" onsubmit="pepe = window.open(this.action , 'pepe' , 'width=200,height=200')" >
<
div class="singup">
<
div class="singup-cont">
<
h3>Sign Up!</h3><div style="height:5px;"></div>
<
input name="from_name" type="text" class="singup-imputs"  id="from_name" size="15" maxlength="40"  onClick="MM_setTextOfTextfield('from_name','','')" onDblClick="MM_setTextOfTextfield('from_name','','')" value="Name:"  />
<
input name="from_email_address" type="text" class="singup-imputs"  id="from_email_address" size="20" maxlength="80" onClick="MM_setTextOfTextfield('from_email_address','','')" onDblClick="MM_setTextOfTextfield('from_email_address','','')" value="Email:" />
<
div style="height:5px;"></div>
<
input type="image" onclick="MM_validateForm('from_name','','R','from_email_address','','RisEmail');return document.MM_returnValue" src="images/boton-submit.jpg" />

</
div>

</
div>
</
form