x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
x10Hosting Member

Join Date: Mar 2008
Posts: 14
Credits: 483
maquiblas is on a distinguished road
Quote  
04-10-2008, 02:21 AM
Formulario en HTML y PHP

Hola Gente, como estan?
Pasaba para saber si alguien me podria ayudar con un formulario que me venia funcando y ahora no quiere mas.
Enviar me lo envia pero cuando abro el mail en el contenido del mensaje aparece lo siguiente:

Nombre :<b>Email :</b> </br><b>Empresa :</b> </br><b>Telefono :</b> </br><b>Website :</b> </br><b>Motivo :</b> </br>Comentario :

Les paso el codigo fuente de los dos archivos. Necesitaria saber que me falta o que escribi mal. Por favor.

Archivo Contactar.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="description" content="Servicios"/>
<meta name="geo.country" content="ar"/>
<meta name="author" content="Matias Nirenstein" />
<title>Contactar- </title>
<link href="forms-style.css" rel="stylesheet" type="text/css" />
<meta name="robots" content="nofollow"/>


</head>
<body id="body">
<div id="content">
<div id="body_text">
<div id="contactform">
<h1>Forumulario de Contacto:</h1>

<DESDE HASTA QUE SE INDIQUE, EL CODIGO DEL FORMULARIO>

<form action="cons-recib.php" method="get" id="form1">

<CAMBIAR POR TU URL>
<p><label for="nombre">Nombre/s</label>
<input name="nombre" type="text" id="nombre" /> </p>

<p><label for="email">Email</label>
<input name="email" type="text" id="email" /></p>

<p>
<label for="firma">Empresa </label>
<input name="firma" type="text" id="firma" />
</p>

<p>
<label for="telefono">Telefono</label>
<input name="telefono" type="text" id="telefono" /></p>

<p> <label for="website">Website</label>
<input name="website" type="text" id="website" /></p>

<p> <label for="motivo">Motivo</label>
<select name="motivo" id="motivo">
<option value="consulta">consulta </option>
<option value="cotizacion">presupuesto </option>
</select></p>

<p> <label for="comentarios"> Comentarios </label>
<textarea name="comentario" cols="0" rows="4" id="comentarios"></textarea>
</p>

<p>
<input name="enviar" class="boton" type="submit" id="enviar" value=" ::enviar::" />
</p>


</form>

<!FIN DEL CODIGO DEL FORMULARIO>

</div>
</div>
</div>
</div>
</body></html>


Archivo cons-recib.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="description" content="Servicios"/>
<meta name="geo.country" content="ar"/>
<meta name="author" content="Matias Nirenstein" />

<title>Consulta recibida- </title>
</head>

<body id="body">

<div id="container">
<div id="content">
<div id="frase">
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>

<div id="body_text">
<h1>&gt; Gracias por contactarnos
<?php echo " $nombre \n";?>
</h1>
<p> Su <?php echo " $motivo \n";?> será procesada y respondida a la
mayor brevedad posible.</p>
<?php
$nombre=$HTTP_GET_VARS["nombre"];
$email=$HTTP_GET_VARS["email"];
$firma=$HTTP_GET_VARS["firma"];
$telefono=$HTTP_GET_VARS["telefono"];
$web=$HTTP_GET_VARS["website"];
$motivo=$HTTP_GET_VARS["motivo"];
$comentario=$HTTP_GET_VARS["comentario"];

$destinatario="micuenta@midominio.com.ar";
$asunto="Contacto_desde_website :: $motivo";
$cabeceras="From: $email";


$texto = $texto . "Nombre :".$nombre;
$texto = $texto . "<b>Email :</b> " . $email . "</br>";
$texto = $texto . "<b>Empresa :</b> " . $firma . "</br>";
$texto = $texto . "<b>Telefono :</b> " . $telefono . "</br>";
$texto = $texto . "<b>Website :</b> " . $website . "</br>";
$texto = $texto . "<b>Motivo :</b> " . $motivo . "</br>";
$texto = $texto . "Comentario :" . $comentario;
?>
<?php
mail ($destinatario , $asunto , $texto , $cabeceras); ?>

</div>


</div>
</div>
</body></html>


Desde ya, muchas gracias!

Last edited by maquiblas; 04-10-2008 at 02:26 AM. Reason: me olvide una cosita
Reply With Quote
maquiblas is offlineReport Post
x10 Sophmore

isyad's Avatar

Join Date: Oct 2007
Posts: 188
Credits: 2,545
isyad is on a distinguished road
Location: Rivas,Nicaragua

Quote  
04-10-2008, 10:41 PM
Talking Re: Formulario en HTML y PHP

modifica este codigo

agregale el telefono y lo demas y no os compliqueis la vida. pero si queres voy haber si me fumo todo ese codigo, para probarlo y ver donde esta la falla.

pero no prometo nada.
__________________
<img src=http://forums.x10hosting.com/image.php?type=sigpic&userid=45307&dateline=1196385192 border=0 alt= />
Isyad(El fin de una Historia)
http://isyad.exofire.net
imagen hecha por mi amigo
Kelieth navas
Reply With Quote
isyad is offlineReport Post
x10Hosting Member

Join Date: Mar 2008
Posts: 14
Credits: 483
maquiblas is on a distinguished road
Quote  
04-10-2008, 11:00 PM
Re: Formulario en HTML y PHP

Me fijo. Y te agradeceria bastante si pudieras revisar ese codigo por mi.

Igual te agradesco por dedicarte un tiempo para responderme

Chao!
Reply With Quote
maquiblas is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem compiling PHP zip extension onto a Mac that has MAMP Pro DarkAngelBGE Free Hosting 3 03-10-2008 01:22 PM
Unstand PHP? o0slowpaul0o Tutorials 8 01-07-2008 10:16 PM
Sigo con problemas con phpbb2 reciecho Soporte 7 10-20-2007 07:28 PM
"PHP Startup: Invalid Library" - Interesting error javaguy78 Free Hosting 5 03-27-2007 03:33 PM
[PHP] PHP and interacting with HTML forms Bryon Tutorials 4 08-02-2005 01:45 PM


All times are GMT -5. The time now is 05:10 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Remortgages | WesternUnion | J j benitez | Mortgages | Debt Consolidation