
[AYUDA] Formulario de Registro - Parse error: unexpected T_ISSET
Publicado por maxdiret (4 intervenciones) el 06/10/2015 00:12:02
Que tal amigos, estoy haciendo un formulario de registro el cual guardará información en dos tablas diferentes, las cuales son: registros y clientes, pero tengo un pequeño problema... Al intentar validar los datos del formulario en el registro, me muestra el siguiente error en pantalla:
Parse error: syntax error, unexpected T_ISSET in C:\AppServ\www\proyecto2015\registrar_conf.php on line 8
He estado horas y horas y no he dado con el error, si me pudieran ayudar, aclarar mi duda, seria de grata ayuda.
Les anexo la información de los archivos proceso:
registro.php
registrar_config.php es el otro archivo:
Parse error: syntax error, unexpected T_ISSET in C:\AppServ\www\proyecto2015\registrar_conf.php on line 8
He estado horas y horas y no he dado con el error, si me pudieran ayudar, aclarar mi duda, seria de grata ayuda.
Les anexo la información de los archivos proceso:
registro.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<html>
<head>
<title>REGISTRO</title>
</head>
<body>
<form action="registrar_conf.php" method="post">
<table>
<tr>
<tr>
<td>Usuario:</td>
<td><input type="text" name="user"/></td>
</tr>
<tr>
<td>Contraseña</td>
<td><input type="text" name="pw"/></td>
</tr>
<tr>
<td>Repetir Contraseña</td>
<td><input type="text" name="pw2"/></td>
</tr>
<tr>
<td>Correo</td>
<td><input type="text" name="email"/></td>
</tr>
<td>Nombre:</td>
<td><input type="text" name="nombre"/></td>
</tr>
<td>Apellido:</td>
<td><input type="text" name="apellido"/></td>
</tr>
<td>CI:</td>
<td><input type="text" name="ci"/></td>
</tr>
<td>Direccion:</td>
<td><input type="text" name="direccion"/></td>
</tr>
<td>Telefono:</td>
<td><input type="text" name="telefono"/></td>
</tr>
<td>Telefono 2:</td>
<td><input type="text" name="telefono2"/></td>
</tr>
<td>Ciudad:</td>
<td><input type="text" name="ciudad"/></td>
</tr>
</table>
<input type="submit" value="Registrarse"/> <input type="reset" value="Borrar"/>
</form>
</body>
</html>
registrar_config.php es el otro archivo:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
include("conexion/conexion.php");
if(isset($_POST['user']) && !empty($_POST['user']) &&
isset($_POST['pw']) && !empty($_POST['pw']) &&
isset($_POST['pw2']) && !empty($_POST['pw2']) &&
isset($_POST['email']) && !empty($_POST['email'])
isset($_POST['nombre']) && !empty($_POST['nombre']) &&
isset($_POST['apellido']) && !empty($_POST['apellido']) &&
isset($_POST['ci']) && !empty($_POST['ci']) &&
isset($_POST['direccion']) && !empty($_POST['direccion']) &&
isset($_POST['telefono']) && !empty($_POST['telefono']) &&
isset($_POST['telefono2']) && !empty($_POST['telefono2']) &&
isset($_POST['ciudad']) && !empty($_POST['ciudad']))
{
$con=mysql_connect($host, $user, $pw) or die ("Problemas al conectar servidor");
mysql_select_db($db,$con) or die ("Problemas al conectar DB");
mysql_query("INSERT INTO registros (USER,PW,EMAIL) VALUES ('$_POST[user]', '$_POST[pw]', '$_POST[email]')", $con);
mysql_query("INSERT INTO clientes (nombre, apellido, ci, direccion, telefono, telefono2, ciudad) VALUES('$_POST[nombre]', '$_POST[apellido]', '$_POST[ci]', '$_POST[direccion]', '$_POST[telefono]', '$_POST[telefono2]', '$_POST[ciudad]')", $con);
}
else{
echo"Verifica que los datos coincidan y las contraseñas";
}
?>
Valora esta pregunta


0