Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/03/2011, 05:14
Avatar de carlosmderio3
carlosmderio3
 
Fecha de Ingreso: marzo-2011
Ubicación: valencia
Mensajes: 67
Antigüedad: 13 años, 1 mes
Puntos: 0
Respuesta: Formulario - Send.php

Código PHP:
<!-- inicio del formulario de contacto -->

<
form action="send.php" method=post name=form1>

<
input type=hidden name=LG value="es" />

<
table cellpadding=5 cellspacing=0 border=0 align=center style="margin:15px 0px 0px 5px">

<
tr><td colspan=2 align=right>
<
h1>Formulario de contacto</h1>
</
td></tr><tr valign=top><td class=encab>

Nombre<br><input type="text" name=Name style="width:230px; margin-bottom:10px; height:22px;" /><br>

Tel&#233;fono<br><input type="text" name=telefono style="width:230px;margin-bottom:10px; height:22px;" /><br>

 
Email<br><input type="text" name=Email style="width:230px;margin-bottom:10px; height:22px;" />

<
input type=submit value="Enviar"  style="width:87px; height:25px; background:#00ae91; border:0px; color:#fff; text-transform:uppercase">
</
td>
<
td class=encab>Mensaje<br><textarea name=Msg style="width:406px; height:161px"></textarea></td></tr>
</
table>
</
form>  
<!-- 
fin del formulario de contacto --> 

error en parte de tu script:

Código PHP:
$name $_GET['Name'];
$email $_GET['Email'];
$telefono $_GET['telefono'];
$message $_GET['Msg'];
$headers "From: $name <$email> \r\n";
$headers .= 'MIME-Version: 1.0' "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";
$msg "Name: ".$name."\n\nE-mail: ".$email."\n\ntelefono: ".$telefono."\n\nMessage: ".$message."";
mail($sendTo$subject$msg$headers);

echo 
"sent=success"

Lo reedite tal cual esta en tu web... ahora si !!!!
Prueba aver...
__________________
Oir EuropaFM Valencia!

Última edición por carlosmderio3; 22/03/2011 a las 07:52