Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/12/2010, 20:09
vili86
 
Fecha de Ingreso: septiembre-2009
Mensajes: 281
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Pasar informacion formularios PHP

Gracias maycolalvarez pero es muy raro esto mira hice 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="clave" 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."); 
No me funciona por POST no me direcciona a la pagina de la escuela y tampoco me llega su DNI a
verificando.php
Código PHP:
<?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 ");

?>

Intente haciendo po GET me llega al correo de la escuela todo por defecto menos el dni del alumno que es lo mas importante ????????