codigo HTML
<table style=\"width:250px;\">
<input type='hidden' name='OPCION' value='ENVIAR'>
<tr>
<th colspan=2 align=center class=titulo><h3>REGISTRO DE DATOS</h3></th>
</tr>
<tr>
<th width='43%'>
<div align='right'>
<strong>
USUARIO:
</strong>
</div>
</th>
<td width='57%' align=left>
<input type=text onKeyUp='javascript:this.value=this.value.toUpperC ase();' maxlength=8 size=25 name=CEDULA onkeypress=\"return validar_tab(event)\"/>
</td>
</tr>
<tr>
<th>
<div align='right'>
<strong>
CLAVE:
</strong>
</div>
</th>
<td align='left'>
<input type=\"password\" maxlength=15 size='25' name=CLAVE OnKeyPress='return Valida_Tecla(event)'/>
</td>
</tr>
<tr>
<th height='53' colspan=2 align=center valign='middle'><div align=center>
<p><br>
<input name=button type=button class='form-btn' value=ENTRAR onclick='valida()'/>
</p>
</div></th>
</tr>
</table>
//
************************************************** ************************************************** ******************************
// CONSULTAR EL USUARIO EN LA BASE DE DATOS
//************************************************** ************************************************** ******************************
function SelectCorrespondenciaRegistro(){
$ObjDatosUser=$this->ObjConsulta->SelectUser($_POST['CEDULA'],$_POST['CLAVE'],conect);
$registro=count($ObjDatosUser);
if($registro>0){
$campos['id_usuario']=$ObjDatosUser[1][1];
$campos['CEDULA']=$ObjDatosUser[1][2];
$campos['nombres']=$ObjDatosUser[1][3];
$campos['apellidos']=$ObjDatosUser[1][4];
$campos['clave']=$ObjDatosUser[1][5];
$this->ObjSesion->flibCrearVariable($campos,1);
echo $this->ObjScript->redirecciona("classPrincipal.php");
}
else{
echo $this->ObjScript->mensajeRedirecciona_2("El Usuario No tiene Acceso al Sistema","classInicioSesion.php");
}
}
function fciPasarPagina(){
$ObjDatosUser=$this->ObjConsulta->SelectCedula($_SESSION['cedula'],conect);
$i=count($ObjDatosUser);
if($i!=0){
$campos['id_usuario']=$ObjDatosUser[1][1];
$campos['CEDULA']=$ObjDatosUser[1][2];
$campos['nombres']=$ObjDatosUser[1][3];
$campos['apellidos']=$ObjDatosUser[1][4];
$campos['clave']=$ObjDatosUser[1][5];
$this->ObjSesion->flibCrearVariable($campos,1);
echo $this->ObjScript->redirecciona("classBienvenida.php");
}
else{
echo $this->ObjScript->mensajeCierra("El Usuario No tiene Acceso al Sistema");
}
}
}
?>
<script language="JavaScript" type="text/javascript">
document.PaginaSiguiente.CEDULA.focus();
</script>
<input type='hidden' name='OPCION' value='ENVIAR'>
<tr>
<th colspan=2 align=center class=titulo><h3>REGISTRO DE DATOS</h3></th>
</tr>
<tr>
<th width='43%'>
<div align='right'>
<strong>
USUARIO:
</strong>
</div>
</th>
<td width='57%' align=left>
<input type=text onKeyUp='javascript:this.value=this.value.toUpperC ase();' maxlength=8 size=25 name=CEDULA onkeypress=\"return validar_tab(event)\"/>
</td>
</tr>
<tr>
<th>
<div align='right'>
<strong>
CLAVE:
</strong>
</div>
</th>
<td align='left'>
<input type=\"password\" maxlength=15 size='25' name=CLAVE OnKeyPress='return Valida_Tecla(event)'/>
</td>
</tr>
<tr>
<th height='53' colspan=2 align=center valign='middle'><div align=center>
<p><br>
<input name=button type=button class='form-btn' value=ENTRAR onclick='valida()'/>
</p>
</div></th>
</tr>
</table>
//
************************************************** ************************************************** ******************************
// CONSULTAR EL USUARIO EN LA BASE DE DATOS
//************************************************** ************************************************** ******************************
function SelectCorrespondenciaRegistro(){
$ObjDatosUser=$this->ObjConsulta->SelectUser($_POST['CEDULA'],$_POST['CLAVE'],conect);
$registro=count($ObjDatosUser);
if($registro>0){
$campos['id_usuario']=$ObjDatosUser[1][1];
$campos['CEDULA']=$ObjDatosUser[1][2];
$campos['nombres']=$ObjDatosUser[1][3];
$campos['apellidos']=$ObjDatosUser[1][4];
$campos['clave']=$ObjDatosUser[1][5];
$this->ObjSesion->flibCrearVariable($campos,1);
echo $this->ObjScript->redirecciona("classPrincipal.php");
}
else{
echo $this->ObjScript->mensajeRedirecciona_2("El Usuario No tiene Acceso al Sistema","classInicioSesion.php");
}
}
function fciPasarPagina(){
$ObjDatosUser=$this->ObjConsulta->SelectCedula($_SESSION['cedula'],conect);
$i=count($ObjDatosUser);
if($i!=0){
$campos['id_usuario']=$ObjDatosUser[1][1];
$campos['CEDULA']=$ObjDatosUser[1][2];
$campos['nombres']=$ObjDatosUser[1][3];
$campos['apellidos']=$ObjDatosUser[1][4];
$campos['clave']=$ObjDatosUser[1][5];
$this->ObjSesion->flibCrearVariable($campos,1);
echo $this->ObjScript->redirecciona("classBienvenida.php");
}
else{
echo $this->ObjScript->mensajeCierra("El Usuario No tiene Acceso al Sistema");
}
}
}
?>
<script language="JavaScript" type="text/javascript">
document.PaginaSiguiente.CEDULA.focus();
</script>
Gracias por colaborar...
![Decabeza](http://static.forosdelweb.com/fdwtheme/images/smilies/decabeza.png)