Cuando intento entrar a mi pagina ( http://neoparty.iespana.es/usuarios/registro.php < code mas abajo > ) me aparece el error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/sites/1/iespana.es/n/e/neoparty/site/usuarios/registro.php on line 48
Les marco con color cual es la linea 48 ( al del error )
ROJO = AREA DEL PROBLEMA
VERDE = RESTO DEL CODIGO PHP
AZUL = CODIGO HTML
Code:
Cita:
<?php
# FileName="..."
# Type="..."
# HTTP="..."
$hostname_neoparty = "...";
$database_neoparty = "...";
$username_neoparty = "...";
$password_neoparty = "...";
$neoparty = mysql_pconnect($hostname_neoparty, $username_neoparty, $password_neoparty) or trigger_error(mysql_error(),E_USER_ERROR);
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO usuarios ('nombre', 'usuario', 'contraseña', 'email', 'genero', 'partypoints', 'user_neo') VALUES ('$HTTP_POST_VARS['nombre']', '$HTTP_POST_VARS['usuario']', '$HTTP_POST_VARS['contrasea']', '$HTTP_POST_VARS['email']', '$HTTP_POST_VARS['genero']', '$HTTP_POST_VARS['partypoints']', '$HTTP_POST_VARS['user_neo']');
mysql_select_db($database_neoparty, $neoparty);
$Result1 = mysql_query($insertSQL, $neoparty) or die(mysql_error());
$insertGoTo = "/correctamente.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
<!--
body {
background-color: #EEAD0E;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0000FF;
}
a:hover {
text-decoration: none;
color: #0000FF;
}
a:active {
text-decoration: none;
color: #0000FF;
}
.Seccion {
font-family: "Comic Sans MS";
font-size: 12px;
color: #0000FF;
}
.Estilo3 {font-size: 18px}
.Estilo4 {font-size: 14px}
.Estilo7 {font-family: "Comic Sans MS"; font-size: 12px; color: #0000FF; font-weight: bold; }
.Estilo8 {font-size: 9px}
-->
</style>
</head>
<body>
<p align="center" class="Seccion Estilo3">Registrate!</p>
<p align="center" class="Seccion Estilo3"> </p>
<p align="center" class="Seccion Estilo4">Seras registrado en el momento!</p>
<p align="center" class="Seccion Estilo4"> </p>
<p align="center" class="Seccion Estilo4"> </p>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" class="Seccion" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Nombre:</td>
<td><input type="text" name="nombre" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Usuario:</td>
<td><input type="text" name="usuario" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Contraseña:</td>
<td><input type="text" name="contrasea" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Email:</td>
<td><input type="text" name="email" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Genero:</td>
<td><input type="text" name="genero" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Partypoints:</td>
<td><input name="partypoints" type="hidden" id="hiddenField" value="5" />
Se agregaran 5</td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">User en neo:</td>
<td><input type="text" name="user_neo" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Insertar registro" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form>
<p> </p>
<p align="center" class="Seccion Estilo4"> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p class="Seccion"> </p>
<p class="Seccion"> </p>
<p align="right" class="Seccion"> </p>
</body>
</html>
# FileName="..."
# Type="..."
# HTTP="..."
$hostname_neoparty = "...";
$database_neoparty = "...";
$username_neoparty = "...";
$password_neoparty = "...";
$neoparty = mysql_pconnect($hostname_neoparty, $username_neoparty, $password_neoparty) or trigger_error(mysql_error(),E_USER_ERROR);
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO usuarios ('nombre', 'usuario', 'contraseña', 'email', 'genero', 'partypoints', 'user_neo') VALUES ('$HTTP_POST_VARS['nombre']', '$HTTP_POST_VARS['usuario']', '$HTTP_POST_VARS['contrasea']', '$HTTP_POST_VARS['email']', '$HTTP_POST_VARS['genero']', '$HTTP_POST_VARS['partypoints']', '$HTTP_POST_VARS['user_neo']');
mysql_select_db($database_neoparty, $neoparty);
$Result1 = mysql_query($insertSQL, $neoparty) or die(mysql_error());
$insertGoTo = "/correctamente.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
<!--
body {
background-color: #EEAD0E;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0000FF;
}
a:hover {
text-decoration: none;
color: #0000FF;
}
a:active {
text-decoration: none;
color: #0000FF;
}
.Seccion {
font-family: "Comic Sans MS";
font-size: 12px;
color: #0000FF;
}
.Estilo3 {font-size: 18px}
.Estilo4 {font-size: 14px}
.Estilo7 {font-family: "Comic Sans MS"; font-size: 12px; color: #0000FF; font-weight: bold; }
.Estilo8 {font-size: 9px}
-->
</style>
</head>
<body>
<p align="center" class="Seccion Estilo3">Registrate!</p>
<p align="center" class="Seccion Estilo3"> </p>
<p align="center" class="Seccion Estilo4">Seras registrado en el momento!</p>
<p align="center" class="Seccion Estilo4"> </p>
<p align="center" class="Seccion Estilo4"> </p>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" class="Seccion" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Nombre:</td>
<td><input type="text" name="nombre" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Usuario:</td>
<td><input type="text" name="usuario" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Contraseña:</td>
<td><input type="text" name="contrasea" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Email:</td>
<td><input type="text" name="email" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Genero:</td>
<td><input type="text" name="genero" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Partypoints:</td>
<td><input name="partypoints" type="hidden" id="hiddenField" value="5" />
Se agregaran 5</td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">User en neo:</td>
<td><input type="text" name="user_neo" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Insertar registro" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form>
<p> </p>
<p align="center" class="Seccion Estilo4"> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p class="Seccion"> </p>
<p class="Seccion"> </p>
<p align="right" class="Seccion"> </p>
</body>
</html>
Espero que alguien me sepa ayudar
Muchas gracias