Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/11/2005, 08:43
AyletH
 
Fecha de Ingreso: noviembre-2005
Mensajes: 2
Antigüedad: 18 años, 5 meses
Puntos: 0
aca mando el codigo, se me hizo medio lio copiartelo porque hay mucho embrollo de tablas, creo que el problema debe estar en la parte que marque con naranja

gracias
AyletH

<?
if (!$HTTP_POST_VARS){
?>
<FORM action=consulta.php method=post>
<form name="form1" method="post" action="envia_email.asp">
<DIV align=center>
<CENTER>
<TABLE height=20 cellSpacing=0 cellPadding=0 width="100%" align=center
border=0>
<TBODY>
<TR>
<TD height=11>
<DIV align=center>
<input type=hidden [email protected] name=recipient>
<input type=hidden value=Consulta desde la página web name=subject>
<input type=hidden value=http://www.aycit.com.ar/Res_Cons.htm ame=redirect>
<span class="Estilo64 </span> </DIV></TD>
</TR>
</TBODY>
</TABLE>
<table style="MARGIN-LEFT: 12px" height=539 cellspacing=0 cellpadding=0
width=386 border=0>
<tbody>
<tr>
<td align=left height=35>
<p><span class="Estilo61">Tema:</span> </p>
<div align=left></div></td>
<td height=35 align=left><select size=1 name=select>
<option value=Sistemas>Sistemas</option>
<option value="Dise&ntilde;o Web">Dise&ntilde;o Web</option>
<option value="Dise&ntilde;o Gr&aacute;fico">Dise&ntilde;o Gr&aacute;fico</option>
<option value="Desarrollos">Programas a Medida</option>
<option value="Capacitaci&oacute;n">Contabilidad</option>
<option value=Otro>Otro</option>
</select></td>
<td height=26 rowspan="2" align=left>&nbsp;</td>
<td width=12 height=133 rowspan=8></td>
</tr>
<tr>
<td align=left height=13><span class="Estilo59"><font face=Tahoma size=2>Otro: </font></span></td>
<td height=13 align=left><input maxlength=256 size=26 name=Otro></td>
</tr>
<tr>
<td colspan=4 height=16><br>
<div align=left>
<p class="Estilo49">Escriba en el siguiente espacio el contenido de su mensaje<small>.</small> </p>
</div></td>
</tr>
<tr>
<td height=190 colspan=4 valign="top">
<div align=left>
<p>
<textarea name=Mensaje cols=40 rows=10></textarea>
</p>
</div></td>
</tr>
<tr>
<td align=left colspan=3 height=26>
<div align=left>
<p class="Estilo50"><font size=2>Por favor, complete con sus datos.</font>
<center>
<p></p>
</center>
</div></td>
<td width=10 height=133 rowspan=7></td>
</tr>
<tr>
<td align=right width=104 height=23>
<div align=left class="Estilo51 Estilo52">
<p>Nombre:&nbsp; </p>
</div></td>
<td width=303 height=23><input name=nombre id="nombre" size=25>
</td>
</tr>
<tr>
<center>
<td align=right width=104 height=25>
<div align=left class="Estilo53 Estilo54">
<p>E-mail :&nbsp; </p>
</div></td>
</center>
<td width=303 height=25><input size=25 name=email>
</td>
</tr>
<tr>
<center>
<td align=right width=104 height=25>
<div align=left class="Estilo56">
<p>Tel&eacute;fono:&nbsp; </p>
</div></td>
</center>
<td width=303 height=25><input size=25 name=telefono>
</td>
</tr>
<tr>
<center>
<td align=right width=104 height=1>
<div align=left class="Estilo56">
<p>Fax:&nbsp; </p>
</div></td>
</center>
<td width=303 height=1><input size=25 name=FAX>
</td>
</tr>
<center>
<tr>
<td align=right colspan=3 height=25></td>
</tr>
</center>
<tr>
<td align=right colspan=3 height=23>
<div align=left>
<p class="Estilo50"><font size=2>&iquest;C&oacute;mo prefiere que lo contactemos?</font></p>
</div>
<div align=left>
<p class="Estilo57">
<input type=radio checked value=e-mail
name="Responder por">
Por e-mail&nbsp;&nbsp;&nbsp;
<input type=radio
value=Telefono name="Responder por">
Por tel&eacute;fono&nbsp;&nbsp;
<input
type=radio value=FAX name="Responder por">
Por fax </p>
</div></td>
</tr>
<center>
<tr>
<td colspan=4 height=20></td>
</tr>
</center>
</table>
</CENTER>
</DIV>
<DIV align=center>
<CENTER>
<INPUT name="submit" type=submit onClick="MM_validateForm('nombre','','R','email',' ','RisEmail','telefono','','NisNum','FAX','','NisN um','Mensaje','','R');return document.MM_returnValue" value=" Enviar ">
<INPUT name="reset" type=reset value=" Borrar ">
<P>
</center>
</div>
</form>
<?
}else{
$cuerpo = "Formulario desde la web\n";
$cuerpo .= "Tema: " . $HTTP_POST_VARS["Tema"] . "\n";
$cuerpo .= "Otro: " . $HTTP_POST_VARS["Otro"] . "\n";
$cuerpo .= "Mensaje: " . $HTTP_POST_VARS["Mensaje"] . "\n";
$cuerpo .= "nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "email: " . $HTTP_POST_VARS["email"] . "\n";
$cuerpo .= "telefono: " . $HTTP_POST_VARS["telefono"] . "\n";
$cuerpo .= "FAX: " . $HTTP_POST_VARS["FAX"] . "\n";
$cuerpo .= "Responder por: " . $HTTP_POST_VARS["Responder por"] . "\n";

mail("[email protected]","Formulario recibido",$cuerpo);

echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>