Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/01/2010, 11:23
Avatar de alfaari
alfaari
 
Fecha de Ingreso: enero-2010
Mensajes: 6
Antigüedad: 14 años, 3 meses
Puntos: 0
Complicación usando HTML y PHP

Estimados miembros del foro, tengo problemas al ejecutar el siguiente código, no me lo reconoce el servidor (no puedo acceder a él, pero es lo que dice el webmaster), espero que alguien vea el error.

muchas gracias de antemano.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>CURSO2010</title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta content="MSHTML 5.00.3700.6699" name="GENERATOR">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta content="MSHTML 5.00.3700.6699" name="GENERATOR">
<center><img src="cabecera3.PNG" alt="Curso" ></center>
</head>
<body bgcolor=#008000>
<table width=898px align='center'>
<tr>
<td align="center"><font color="#B3F0CD" size=+3><span style="font-family: 'Trebuchet MS';"> <br><B>curso especializado</B><br></span></font><br></td>
</tr>
</table>
<table width=898px align='center'>
<tr>
<td height=100%>
<table bgcolor=#C4DEDF width=200px height=100%>
<tr>
<td valign='top'>
<ul>
<span style="font-family: 'Trebuchet MS';">
<A HREF="index.html"><br><li>INICIO</li></a><br>
<A HREF="PROGRAMA.pdf" target="_blank"><li>Programa preliminar</li></a><br>
<A HREF="temario.pdf" target="_blank"><li>Temario preliminar</li></a><br>
<li><A HREF="FECHAS IMPORTANTES.pdf" target="_blank">Fechas importantes</a></li><br>
<li><A HREF="preinscripcion.php">Pre-inscripción</a></li><br>
<li><A HREF="inscripcion_Jaca2010.doc" target="_blank">Inscripción</a></li><br><br><br>
<li><A href="http://www.unizar.es/resijaca/html/inicio.php" target='_blank'>Residencia de Jaca</a></li><br>
<li><a href="http://www.abaco-digital.com/localizacion.html?direccion=Universidad+3+Jaca+Spa in&myHtml=Residencia%20Universitaria%20de%20Jaca%2 0%3Cbr%3E%20C/%20Universidad,%203%20%3Cbr%3E%20Jaca%20(Huesca)" target='_blank'>Cómo llegar</a></li><br>
<li><a href="http://www.jaca.com/" target='_blank'>La ciudad de Jaca</a></li><br>
<li><a href="http://www.lospirineos.info/aragon/jaca.htm" target='_blank'>Alrededores</a></li><br><br>
<li><a href="MÁS INFORMACIÓN.pdf" target="_blank">Más información y contacto</a></li>
</span>
<br>
<br>
<strong><font color="#000066" size=2>Desarrollo Web:</font></strong><br>
<font color='#000000' size=-1<br>xxxx</font></span><span style="font-family: 'Trebuchet MS';"><font color='#000000' size=-1<br>xxxx<br>
</font>
</span><br>
</ul>
</td>
</tr>
</table>
</td>
<td height=100%>
<table bgcolor=#C4DEDF width=698px height=100%>
<tr>
<td >

<font color="#008000" size=+1><br><br><B><span style="font-family: 'Trebuchet MS';">&nbsp;Pre-Inscripción:</span></B></font><br><br>
<font color='#000000' align="justify"><span style="font-family: 'Trebuchet MS';" >
<?
if (!$HTTP_POST_VARS){
?>
<form action="preinscripcion.php" method=post>
&nbsp;&nbsp;Apellidos:&nbsp;<input type="text" name="apellidos" value="" >&nbsp;&nbsp;Nombre:&nbsp;<input type="text" name="nombre" value="" ><br><br>
&nbsp;&nbsp;Centro de trabajo:&nbsp;<input type="text" name="centro" value="" ><br>
&nbsp;&nbsp;- Deseo solicitar cuota reducida de estudiante y beca de asistencia (SI/NO):<br>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="cuota" value="" ><br>
&nbsp;&nbsp;- Datos adicionales (Tipo de beca o contrato, título y Director de Tesis):&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;<textarea name="datos" value="" rows="1" cols="50"></textarea><br><br>
&nbsp;&nbsp;Dirección:&nbsp;<textarea name="dirección" value="" rows="1" cols="50"></textarea><br><br>
&nbsp;&nbsp;Ciudad:&nbsp;<input type="text" name="ciudad" value="" >
&nbsp;&nbsp;CP:&nbsp;<input type="text" name="cp" value="" >
&nbsp;&nbsp;Provincia:&nbsp;<input type="text" name="prov" value="" ><br><br>
&nbsp;&nbsp;País:&nbsp;<input type="text" name="pais" value="" ><br><br>
&nbsp;&nbsp;Acompañantes:&nbsp;<br>&nbsp;&nbsp;&nb sp;&nbsp;<textarea name="acomp" value="" rows="2" cols="30"></textarea><br><br>
&nbsp;&nbsp;Persona con quien desea compartir habitación:<br>&nbsp;&nbsp;&nbsp;&nbsp;<textarea name="pers" value="" rows="1" cols="50"></textarea><br><br>
&nbsp;&nbsp;Teléfono:&nbsp;<input type="text" name="tel" value="" >
&nbsp;&nbsp;E-Mail:&nbsp;<input type="text" name="mail" value="" ><br><br><br>
&nbsp;&nbsp;<input type="submit" value="Enviar" />&nbsp;&nbsp;
<input type="reset" value="Cancelar" />
</form>
<?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviado\n";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Apellidos: " . $HTTP_POST_VARS["apellidos"] . "\n";
$cuerpo .= "Centro de trabajo: " . $HTTP_POST_VARS["centro"] . "\n";
$cuerpo .= "Deseo solicitar cuota reducida: " . $HTTP_POST_VARS["cuota"] . "\n";
$cuerpo .= "Datos adicionales: " . $HTTP_POST_VARS["datos"] . "\n";
$cuerpo .= "Dirección: " . $HTTP_POST_VARS["direción"] . "\n";
$cuerpo .= "Ciudad: " . $HTTP_POST_VARS["ciudad"] . "\n";
$cuerpo .= "CP: " . $HTTP_POST_VARS["cp"] . "\n";
$cuerpo .= "Provincia: " . $HTTP_POST_VARS["prov"] . "\n";
$cuerpo .= "Acompañantes: " . $HTTP_POST_VARS["acomp"] . "\n";
$cuerpo .= "Persona con quien desea compartir habitación: " . $HTTP_POST_VARS["pers"] . "\n";
$cuerpo .= "Teléfono: " . $HTTP_POST_VARS["tel"] . "\n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["mail"] . "\n";

//mando el correo
mail("[email protected]","Pre-inscripción Curso",$cuerpo);

//doy las gracias por el envío
echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>

</span></font><br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--hr width="100%" size="2"><i>Ultima actualizaci&oacute;n de la p&aacute;gina:
02/11/09<br>

</body>
</html>