Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/08/2014, 02:15
Avatar de ruizinho
ruizinho
 
Fecha de Ingreso: noviembre-2012
Ubicación: Granada
Mensajes: 68
Antigüedad: 11 años, 5 meses
Puntos: 2
Respuesta: formulario php me llega en blanco

Hola prueba con esto a ver si se te soluciona:

Código HTML:

Código HTML:
<!-- ***************** - START Contact Form - ***************** -->
    <form action="formulario/validacion.php" method="post" class="contact-form" >             
            <div class="formulario">
                <div class="column">
                    <label for="nombre">Nombre <span>(requerido)</span></label>
                    <input type="text" name="nombre" class="form-input"/>
                    <label for="email">Email <span>(requerido)</span></label>
                    <input type="email" name="email" class="form-input" />
                   
                    <label for="mensaje">Mensaje <span>(requerido)</span> </label>
                    <textarea name="mensaje" class="form-input"  ></textarea>
                </div>    
                        
                
                <input class="form-btn" type="submit" value="Enviar Mensaje"/>
            </div>      
        </form>
	<!-- ***************** - END Contact Form - ***************** --> 
Código PHP:

Código PHP:
<?php



 
if(!empty($_POST['nombre']) AND !empty($_POST['email'])   AND   !empty($_POST['mensaje'])){

$to ="[email protected]";
$headers "Content-Type: text/html; charset=iso-8859-1\n"
$headers .= "From:".$_POST['nombre']."\r\n";            
$tema="Contacto desde mi pagina de prueba;
$mensaje="



<table border='0' cellspacing='2' cellpadding='2'>
  <
tr>
    <
td width='20%' align='center' bgcolor='#FFFFCC'><strong>Nombre:</strong></td>
    <
td width='80%' align='left'>$_POST[nombre]</td>
  </
tr>
  <
tr>
    <
td align='center' bgcolor='#FFFFCC'><strong>E-mail:</strong></td>
    <
td align='left'>$_POST[email]</td>
  </
tr>
  
  <
tr>
    <
td align='center' bgcolor='#FFFFCC'><strong>Mensaje:</strong></td>
    <
td align='left'>$_POST[mensaje]</td>
  </
tr>
</
table>

";
@mail($to,$tema,$mensaje,$headers); 

  echo "
<META HTTP-EQUIV="Refresh\" CONTENT=\"0;URL=http://miweb.com/contacto-exito.html/">";

} else {
    echo "
<META HTTP-EQUIV="Refresh\" CONTENT=\"0;URL=http://miweb.com/contacto-error.html/">";
}
?>

Bueno ya diras si te sirvió o no

Un saludo
__________________
Instalaciones Técnicas Ruiz