Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/06/2004, 18:52
Avatar de MaBoRaK
MaBoRaK
 
Fecha de Ingreso: abril-2003
Ubicación: La Paz - Bolivia
Mensajes: 2.003
Antigüedad: 21 años
Puntos: 35
loading..........


Bueno esta es mi idea de novato.

Código PHP:
if(isset($_POST['enviar']) 

if (empty($_POST['email'] || empty($_POST['asunto'] || empty($_POST['nombre'] || empty($_POST['mensaje'])
{
aqui le pones algun error y que vuelva atras
}
else
{

mail("[email protected]",$asunto,$mensaje,"From: $nombre <$email>")
echo"mandado con exito";
}

else 
{
?>

    <form method="post" action="<?$PHP_SELF?>"> 
    <p> 
    Nombre:<br /> 
    <input type="text" name="nombre" /><br /> 
    Email:<br /> 
    <input type="text" name="email" /><br /> 
    Asunto:<br /> 
    <input type="text" name="asunto" /><br /> 
    Mensaje:<br /> 
    <textarea name="mensaje" cols="30" rows="5"></textarea><br /> 
    <br /> 
    <input type="submit" name="enviar" value="Enviar" /> 
    </p> 
    </form> 
<?php

}
__________________

Maborak Technologies

Última edición por MaBoRaK; 08/06/2004 a las 18:53