Foros del Web » Programando para Internet » PHP »

Que error tiene este codigo?

Estas en el tema de Que error tiene este codigo? en el foro de PHP en Foros del Web. Hola no entiendo cual es el error en este codigo lo reviso y lo reviso y nada. me dice esto :_ Parse error: parse error, ...
  #1 (permalink)  
Antiguo 23/05/2002, 14:51
Avatar de lochorui  
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 899
Antigüedad: 22 años, 1 mes
Puntos: 2
Que error tiene este codigo?

Hola no entiendo cual es el error en este codigo lo reviso y lo reviso y nada.
me dice esto :_
Parse error: parse error, unexpected
Cita:
T_STRING in /home/maria/public_html/formentrada.php on line 80
El codigo es el siguiente
Cita:
<html><!-- #BeginTemplate "/Templates/plantilla hojas.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>SAI TEI --General Oraá 19 Tfn:91 562 43 99</title>
<!-- #EndEditable -->
<META NAME="TITLE" CONTENT="Sai Tei Madrid ---belleza -terapias---">
<META NAME="DESCRIPTION" CONTENT="Web de local situado en madrid , que ofrece tratamientos, esteticos ademas de masajes terapeuticos como shiatsu , reflexoterapia..">
<META NAME="KEYWORDS" CONTENT="Sai Tei,SAITEI,madrid,estetica,belleza,terapias,orient al,masaje,masajes,terapia,esteticista,mujer,mujere s,madrid,foros,shitasu,reflexoterapia,metamorfico, masajes,depilacion,manicura,pedicura,uña,uñas,uñas de porcelana,decoracion,facial,corporal,reiki,yoga,pe eling,peelings,faciales,corporales,limpieza,cutis, piel,sensible,decoloracion,bello,hombres,ellos,cir culacion,circulatorio,podal,relax,relajante,masaje relajante,drenaje,sungrei,sung rei,parafina,decoracion,uñas encarnadas,foro,tratamiento,esculpidas,uñas esculpidasrepaso,relleno,antiestres,estres,relajac ion,rayos uva,novias,bodas,anticelulitico,anticelulitis,celu litis,piel,piel de naranja,madrid,serrano,local,">
<META NAME="OWNER" CONTENT="[email protected]">
<META NAME="AUTHOR" CONTENT="Lukas Ochoa Ruiz">
<META HTTP-EQUIV="EXPIRES" CONTENT="">
<META HTTP-EQUIV="CHARSET" CONTENT="ISO-8859-1">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="Spanish">
<META HTTP-EQUIV="VW96.OBJECT TYPE" CONTENT="Other (your choice)">
<META NAME="RATING" CONTENT="General">
<META NAME="ROBOTS" CONTENT="index,follow">
<META NAME="REVISIT-AFTER" CONTENT="4 weeks">

</head>

<body bgcolor="#faf9e1" text="8a8a88" link="8a8a88" vlink="#FF0033" alink="#FF0033">
<center>
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="268" height="18"></td>
<td width="32"></td>
<td valign="top" width="177" align="center" rowspan="2"><img src="saiteiletras.gif" width="177" height="51"></td>
<td width="15"></td>
<td width="61" rowspan="3" valign="top" align="center"><img src="saitei-log.gif" width="54" height="56"></td>
<td width="197"></td>
</tr>
<tr>
<td rowspan="2" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="50" height="25">
<param name=movie value="minibotonhome.swf">
<param name=quality value=high>
<embed src="minibotonhome.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="50" height="25">
</embed>
</object><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="50" height="25">
<param name=movie value="minibotonforo.swf">
<param name=quality value=high>
<embed src="minibotonforo.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="50" height="25">
</embed>
</object><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="50" height="25">
<param name=movie value="minibotonbelleza.swf">
<param name=quality value=high>
<embed src="minibotonbelleza.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="50" height="25">
</embed>
</object><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="50" height="25">
<param name=movie value="minibotonterapias.swf">
<param name=quality value=high>
<embed src="minibotonterapias.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="50" height="25">
</embed>
</object></td>
<td height="33"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="5"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="27"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="616" colspan="6" valign="top"><!-- #BeginEditable "cuerpo" -->

<?php
if ($enviar) {
//proceso del formulario
$link = mysql_connect("localhost", "maria_lord", "pringaos");
mysql_select_db ("maria_registros", "$sql);
$sql = "INSERT INTO registros (nombre, apellidos, user, pass, pass, direccion, c_postal, provincia, pais, email, telefono, c_conocido, comentarios)";
$sql .= "VALUES ('$nombre', '$apellidos', '$user', '$pass', '$pass', '$direccion', '$c_postal', '$provincia', '$pais', '$email', '$telefono', '$c_conocido', '$comentarios')";
$result = mysql_query($sql);
echo "¡Gracias! Hemos recibido sus datos.\n";
?>
<form name="form1" method="post" action="">
<h4 align="center"> </h4>
<h4 align="center"><i><b>< font face="Georgia, Times New Roman, Times, serif">Formulario
para darse de alta en las reservas online de Sai Tei</font></b></i></h4>
<p align="left">*Nombre
<input type="text" name="textfield">
*Apellidos
<input type="text" name="textfield2">
</p>
<p align="left">*Nombre de usuario
<input type="text" name="textfield10">
</p>
<p align="left">*Password
<input type="text" name="textfield11">
* Repite password
<input type="text" name="textfield12">
</p>
<p align="left">*Direccion
<input type="text" name="textfield3">
*C.Postal
<input type="text" name="textfield4">
</p>
<p align="left">*Provincia
<input type="text" name="textfield5">
*Pais
<input type="text" name="textfield6">
</p>
<p align="left">*E-mail
<input type="text" name="textfield7">
</p>
<p align="left">*Tfn de contacto:
<input type="text" name="textfield8">
</p>
<p align="left">*Como nos ha conocido?
<select name="select" size="1">
<option selected>Revistas</option>
<option>Amistades</option>
<option>Buscador</option>
<option>Ya conocia el local</option>
</select>
</p>
<p align="left">*Comentarios:
<textarea name="textfield9"></textarea>
</p>
<p align="left">
<input type="submit" name="Submit" value="Enviar">
<input type="reset" name="Submit2" value="Borrar">
<br>
*Todos los campos son obligatorios</p>
<p align="left"> </p>
</form>
<?php

} //end if

?>





<!-- #EndEditable --></td>
</tr>
</table>
</center>
</body>
<!-- #EndTemplate --></html>
  #2 (permalink)  
Antiguo 23/05/2002, 14:58
Avatar de lochorui  
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 899
Antigüedad: 22 años, 1 mes
Puntos: 2
Re: Que error tiene este codigo?

Sorry ya lo he conseguido , gracias ;)
  #3 (permalink)  
Antiguo 23/05/2002, 15:26
Avatar de Webstudio
Colaborador
 
Fecha de Ingreso: noviembre-2001
Ubicación: 127.0.0.1
Mensajes: 3.499
Antigüedad: 22 años, 4 meses
Puntos: 69
Re: Que error tiene este codigo?

Que molesto que es cuando hacen esto...

<hr><font size=2 face="verdana">- Pablo Daniel Rigazzi (Webstudio)
<font size=1 color="#333333">COORDINADOR PROYECTO REGIONALIZACION ARGENTINA
Visita <a href="http://www.web-studio.com.ar" target="_blank">Web Studio</a> - Tutoriales Photoshop</fo
  #4 (permalink)  
Antiguo 23/05/2002, 17:39
Avatar de lochorui  
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 899
Antigüedad: 22 años, 1 mes
Puntos: 2
Re: Que error tiene este codigo?

Perdon pero no sabia q lo iva a solucionar como comprenderas sino me ahorro poner todo el codigo :(
  #5 (permalink)  
Antiguo 23/05/2002, 18:24
 
Fecha de Ingreso: diciembre-2001
Mensajes: 451
Antigüedad: 22 años, 3 meses
Puntos: 0
Re: Que error tiene este codigo?

y al final donde estaba el error?
  #6 (permalink)  
Antiguo 23/05/2002, 18:53
Avatar de lochorui  
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 899
Antigüedad: 22 años, 1 mes
Puntos: 2
Re: Que error tiene este codigo?

al final lo he puesto el form en un archivo y el mandar datos en otro y asi me va mejor y encima en el form los textfield no habia puesto lo que eran en la db cada uno jeje
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:41.