Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/08/2005, 00:59
Avatar de leoj90
leoj90
Usuario baneado!
 
Fecha de Ingreso: agosto-2005
Mensajes: 1.365
Antigüedad: 18 años, 9 meses
Puntos: 0
Exclamación

Haber mi codigo html es:
Código HTML:
<form action="send.php">
Nombre: <input type="text" name="nombre" size="15">
<br>
Email: <input type="text" name="from" size="15">
<br>
A: <select name="correo">
<option value="0">Leoj90</option>
<option value="1">Walla</option>
</select>
<br>
Asunto: <input type="text" name="subject" size="15">
<br>
Comentario: <textarea rows="4" cols="10" name="coment"></textarea>
<br>
<input type="submit" value="Enviar" name="enviar">
</form>
</html> 
y el PHP es:

Código PHP:
<? 

$cuerpo 
.= "Asunto: " $HTTP_POST_VARS["subject"] . "\n"

$cuerpo .= "Nombre: " $HTTP_POST_VARS["nombre"] . "\n"

$cuerpo .= "Email: " $HTTP_POST_VARS["from"] . "\n"

$cuerpo .= "Mensaje: " $HTTP_POST_VARS["coment"] . "\n"

$destino$_POST['correo']; // recibes 

switch($destino) { // comparas
      
case '0'$correo"[email protected]"; break; 
      case 
'1'$correo"[email protected]"; break; // asignas según lo recibido 
}

mail ($correo);

echo 
"Gracias tu mail se envio";

?>
Entonces me salta un error en el PHP, porque??