Código PHP:
<?
$valNtc=$_REQUEST["valNtc"];
if($valNtc==""){
$ntc="";
}elseif($valNtc==2){
$ntc="Usuario o Clave Incorrectos, intente de nuevo.";
}elseif($valNtc==3){
$ntc="Debe identificarse para Iniciar Sesión";
}elseif($valNtc==4){
$ntc="Accion Invalida";
}
?>
Código PHP:
<td width="409"><center>
<? include_once("./warning/Advertencia.php");
if ($ntc!="") { ?>
<table width="91%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFF66">
<tr>
<td bgcolor="#666633"><div align="center" class="estadistica3"><? echo $ntc; ?></div></td>
</tr>
</table>
<? }?>
</center></td>
Código PHP:
<? session_start();
include_once("../dbs/dbConex.php");
$dbConex=abrirConexion();
$txtUsuario=$_POST["txtUsuario"];
$txtContrasenia=$_POST["txtContrasenia"];
_____________________________________
if ($txtUsuario =="" or $txtContrasenia=="") {
header("Location: index.php?valNtc=3");
exit;
}
_____________________________________
$sqla="SELECT * FROM Admin WHERE Cedula = '$txtUsuario' AND ClaveAd = '$txtContrasenia' ";
$consultaa=mysql_query($sqla);
$numerofilasa=mysql_num_rows($consultaa);
if($numerofilasa>0){
$filasa=mysql_fetch_array($consultaa);
$_SESSION["NombreAdm"] = $filasa["PrimerNombre"] . " " . $filasa["PrimerApellido"];
$_SESSION["idAdmin"] = $filasa["IdAdmin"];
$dbConex=cerrarConexion($dbConex);
header("Location: ../modul/main.php");
}
___________________________________
else
{
header("Location: index.php?valNtc=2");
exit;
}
___________________________________
?>
The requested URL /Notas/views/index.php was not found on this server.
La manera como tengo las carpetas es la siguiente:
var/www/Notas
/var/www/Notas/dbs
/var/www/Notas/images
/var/www/Notas/link
/var/www/Notas/modul
/var/www/Notas/views en esta se encuentra el script VerificarUsuario.php
/var/www/Notas/warning y en esta se encuentra el script Advertencia.php
Y el index.php no se encuentra dentro de ninguna carpeta es decir esta afuera.
Entonces que debo hacer para que funcione. tendriaque colocar ./ o ../ en la linea de:
header("Location: index.php?valNtc=3");
por fa ayudenme gracias
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)