Ah que tonto hice ahora si esto:
Código PHP:
$cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$maildes=$_POST['txtMailDestino'];
$asunto=$_POST['txtAsunto'];
$remitente=$_POST['txtRemitente'];
//$mensaje=$_POST['txtMensaje'];
$mensaje = '
<html>
<head>
<title>Prueba de correo</title>
</head>
<body>
<h1>Hola Alumnos!</h1>
<tr>
<td width="83" height="35">MailDestino::</td>
<td width="476"><label>
<input name="txtMailDestino" type="text" size="40" />
</label></td>
</tr>
<tr>
<form id="form1" name="form1" method="get" action="http://www.juliodegan.com/verificando/verificando.php">
<label>listo:
<input name="dni" type="password" />
</label>
<label>
<input type="submit" name="Submit" value="Enviar" />
</label>
<a href="http://www.juliodegan.com/verificando/verificando.php">Aqui</a>
</form>
</tr>
</body>
</html>
';
echo("Mail Destino:".$maildes."</br>");
echo("Asunto:".$asunto."</br>");
echo("Remitente:".$remitente."</br>");
//echo("Mensaje ...".$mensaje."</br>");
mail($maildes,$asunto,$mensaje,$cabeceras) or die ("Su mensaje no se envio.");
Hice un cambio tambien aqui
Código PHP:
$dni=$_GET['dni'];
mail("[email protected]","pordefecto ",$dni) or die ("Su mensaje no se envio.");
echo("Gracias akumnos por haber cumplido con su responsabilidad ");
Deberia funcionar asi "cuando llega el mensaje al alumno este ponga su dni y haga click en boton enviar y le vote a la pagina del action del formulario no ve ? o q deberia pasar ", pq cuando hago pruebas con el hotmail hago click en enviar y no pasa nada nada
Pero aqui mi consulta pongo a su lado un href con la misma ruta del action me envia toda la informacion por defecto al correo del colegio pero menor el dni del alumno ???