Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2010, 14:05
Bam_Margera
 
Fecha de Ingreso: febrero-2009
Mensajes: 580
Antigüedad: 15 años, 3 meses
Puntos: 13
Pregunta No Recibo el coreo enviado con $mail.. alguien puede revisarme el codigo?

Muy buenas,

estoy haciendo un formulario de contacto pero no me funciona.. ?

os pongo el codigo, y un link con display errors, al parecer no reconoce los $_post del formulario

Código PHP:
<?php

ini_set
('display_errors'1);
ini_set('log_errors'1);
ini_set('error_log'dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL);
session_start();

?>


<h1>Help</h1>



<?
if($_POST['notes'] && $_POST['name'] && $_POST['emal']){

    
$correo "[email protected]";
    
$mail=$_POST['emal'];
    
$nombre $_POST['name'];
    
$coment $_POST['notes'];
    
$asunto"Sugerencia recibida desde el formulario de keepyourlinks";
    
    
$message ="
    <h1>"
.$nombre."</h1><hr /><br />
    <h4>Comentario: <h4>"
.$coment."<br /><br />";
    echo 
'<div class="caja"><p><img src="../../images/confirm.php" alt="img" width="32" height="25" /> Thank you very much for your submission</p></div>';
    
    
mail($mail$asunto,$message,"Some need Help in keepyourlinks <".$correo.">");

}else{
    

                
?>


<h2>If any of this didn't help please send us your request</h2>
<div id="stylized" class="myform">
<form id="contact" name="contact" method="post" action="help.php">
  <label>Name</label>
  <input type="text" name="name" id="name" />
  </input>
  <label>email</label>
  <input type="text" name="email" id="email" />
  </input>
  <label>Notes</label>
  <span class="small">Please write here any coment, request or questioin</span>
  <textarea type="text" name="notes" id="notes" />
  </textarea>
  <button type="submit" name="send" id="send">Send</button>
</form>
</dv>

<? ?>



<h2>Try also to login with Demo user</h2>
<p>There is avaliable Demo User with some links and some categories so you can
  have a look how your links will be kept</p>
<h3 class="caja"><a href="login.php?demo=true">Try Demo User</a></h3>
En principio valida y tal, pero no recibo el comentario.. :?

Para probarlo, aqui

http://keepyourlinks.com/help.php

Cualquier idea ese bienvenida :)

gracias!
__________________
¿ya conoces la red social de cocina? descubre y comparte recetas de cocina
TONIWEB, un programador web freelance