Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/06/2010, 16:44
Avatar de juan_14nob
juan_14nob
 
Fecha de Ingreso: abril-2010
Mensajes: 552
Antigüedad: 14 años
Puntos: 6
Respuesta: Login php/mysql

Cita:
Iniciado por dcreate Ver Mensaje
checa esto, te puede dar mas ideas
Hola que tal. lo estuve viendo el archivo "password.php" me tira este error en la lina 94: Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\password.php on line 94

dejo el codigo completo:
Código PHP:
<?php 
session_start
(); 
?>
<!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>
<link rel="icon" href="images/stop.ico" type="image/x-icon">
<link rel="shortcut icon" href="images/stop.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<SCRIPT>
function validar(formulario){
* // primera comprobación
* if(formulario.usuario.value == ''){
* * // informamos del error
* * alert('INGRESE SU RPE');
* * // seleccionamos el campo incorrecto
* * formulario.usuario.focus();
* * return false;
* }
* if(formulario.contrasena.value == ''){
* * // informamos del error
* * alert('INGRESE SU CONTRASEÑA');
* * // seleccionamos el campo incorrecto
* * formulario.contrasena.focus();
* * return false;
* }
* return true;
}
//-->
function fo()
{
form1.usuario.focus();
}
</script>
<script language="JavaScript">
var txt=" * * * * * * * * * * * * * - * PASSWORD * * * * * *- * * * * * * * * * * * * * CFE";
var espera=100;
var refresco=null;
function rotulo_title() {
* * * * document.title=txt;
* * * * txt=txt.substring(1,txt.length)+txt.charAt(0);
* * * * refresco=setTimeout("rotulo_title()",espera);}
rotulo_title();
* * * </script>
<style type="text/css">
<!--
#Layer2 {
* * position:absolute;
* * width:200px;
* * height:115px;
* * z-index:1;
* * left: 560px;
* * top: 200px;
}
#Layer3 {
* * position:absolute;
* * width:200px;
* * height:58px;
* * z-index:1;
* * left: 250px;
* * top: 414px;
}
#Layer4 {
* * position:absolute;
* * width:331px;
* * height:67px;
* * z-index:2;
* * left: 11px;
* * top: 14px;
}
.Estilo1 {
* * font-size: 36px;
* * font-weight: bold;
}
-->
</style>
</head>
<body background="images/fondo.png" onload="fo()">
<div id="Layer1">
* <form id="form1" onsubmit=" return validar(this)" name="form1" method="post" action="consultar_pas.php"><P align="center">&nbsp;</p>
* * <P align="center">&nbsp;</p>
* * <P align="center" class="Estilo1"><font face="ARIAL">INICIO DE SESION</font></p>
* * <br />
* * <br /></label>
* *<center class="Estilo8"> *<table width="313" border="0" >
* * * <tr>
* * * * <th colspan="2" * bgcolor="#33CC33" scope="col"><div align="center" class="Estilo11"></div> * * * * *
* * * * * <div align="center" class="Estilo8"></div></th>
* * * </tr>
* * * <tr>
* * * <?php if ($_GET["errorusuario"]=="pai"){echo '<td colspan="2" align="center" 
* * * * bgcolor=red><span class="Estilo3">Contraseña Incorrecta</span></td>'
;}
* * * * if (
$_GET["errorusuario"]=="pui"){echo '<td colspan="2" align="center" 
* * * * bgcolor=red><span class="Estilo3">NO EXISTE USUARIO</span></td>'
;}
* * * * *if (
$_GET["errorusuario"]=="in"){echo '<td colspan="2" align="center" 
* * * * bgcolor=red><span class="Estilo3">Usuario Invalido</span></td>'
;}
* * * * *if (
$_GET["errorusuario"]==""){echo ' <td colspan="2" align="center" 
* * * * * * bgcolor=#FFFFFF><span class="Estilo3"><span class="Estilo6">Introduce Tus Datos</span></span></td>'
;}
* * * * 
?>
* * * </tr>
* * * <tr bgcolor="#FFFFFF">
* * * * <th width="97" scope="col"><div align="left" class="Estilo14">RPE:</div></th>
* * * * <th width="200" scope="col"><div align="left" class="Estilo8">
* * * * * * <input name="usuario" type="text" id="usuario" value="<?php if (isset($_SESSION['usuario'])){ echo $_SESSION['usuario']; } ?>" style="text-transform: uppercase;"/>
* * * * * </div>
* * * * * <span class="Estilo8">
* * * * * </label> * * * * *
* * * * * </span></th>
* * * </tr>
* * * <tr bgcolor="#FFFFFF">
* * * * <td height="43"><div align="left" class="Estilo14"><strong>CONTRASE&Ntilde;A:</strong></div></td>
* * * * <td><div align="left">
* * * * * <input name="contrasena" type="password" id="contrasena" />
* * * * </div></td>
* * * </tr>
* * * <tr bgcolor="#FFFFFF">
* * * * <td height="43" colspan="2"><label>
* * * * <center><input type="submit" name="Submit" value="ENTRAR" /> * 
* * * * * <input type="button" name="Submit2" value="CANCELAR" onclick="javascript:window.close();"/>
* * * * </center> * * * </label>
* * * * * <div align="center"><span class="Estilo8">
* * * * * </span><span class="Estilo8"> * * * * *</span></div></td>
* * * </tr>
* * </table> 
* *</center> 
</form>
</body>
</html>
Saludos!!