<?php
session_start();
/*include "include/conexion.php"; //conexión a la base de datos
include "include/func.php"; //funciones varias
include "include/mensajes_usuario.php"; //mensajes de error para las sesiones
include "include/funciones_generales.php";*/
if($_POST['accion']=='entrar')
{
$login = $_POST['login'];
$pass = $_POST['pass'];
$result = sesion_usuario($login,$pass,$conn);
$msj = '';
switch($result){
case "0":
header("location: ".$_SERVER['PHP_SELF']."?msj=1"); //fallo login
break;
case "1":
header("location: ".$_SERVER['PHP_SELF']."?msj=2"); //fallo pass
break;
case "2":
header("location: ".$_SERVER['PHP_SELF']."?msj=4"); //fallo db
break;
case "3":
header("location: inicio.php");
}
exit;
}else
session_destroy();
?>
<!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>Registro de Empresas</title>
<link href="estilos/estilo.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="estilos/mouseovertabs.css" />
<BODY background="images/fondo_gob.jpg" leftMargin=0 topMargin=0 >
</head>
<form method="post" action="<?=$_SERVER['PHP_SELF']?>">
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><img src="images/spacer.gif" width="193" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td><table width="785" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td width="494">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td align="center" colspan="2">
<td> </td>
<img src="images/inicio.png" width="800" height="45" />
</td>
</tr>
<tr><td colspan="2"><p align="center"> </p>
<p align="center"><img src="images/ing_civil.jpg" width="307" height="170" /></p>
</td>
</tr>
<tr><td><img src="images/spacer.gif" width="2" height="3"></td>
</tr>
<tr><td colspan="2"><p align="center"><img src="images/user.png" width="50" height="50" /></p>
</td>
</tr>
<tr><td height="30"><span class="title_td">
<div align="right"><font size="2" FACE="calibri">Login:</font> </div></span>
</td>
<td width="57%"><input name="login" type="text" id="login" style="width:120px" /></td>
</tr>
<tr><td colspan="2"><img src="images/spacer.gif" width="2" height="3"></td>
</tr>
<tr><td colspan="2"><img src="images/spacer.gif" width="2" height="2"></td>
</tr>
<tr><td colspan="2"><img src="images/spacer.gif" width="2" height="3"></td>
</tr>
<tr><td height="30"><span class="title_td">
<div align="right"><font size="2" face="calibri">Clave:</font></div></span>
</td>
<td width="57%"><input type="password" name="pass" id="pass" style="width:120px" /></td>
</tr>
<tr><td colspan="2"><img src="images/spacer.gif" width="2" height="2"></td>
</tr>
<tr><td colspan="2" align="center" class="mensaje">
<input type="submit" name="entrar" id="entrar" class="boton" value="Entrar" />
</td>
</tr>
<tr><td colspan="2" align="center" class="Mensaje">
<?=$mensaje[$_GET['msj']]?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td><img src="images/spacer.gif" width="1" height="85" border="0" alt=""></td>
</tr>
</table><input type="hidden" name="accion" value="entrar">
</form>
</body>
</html>
Como ven los include estan comentados ya que al dejar de hacerlo simplemente no carga nada de la pagina. Agradezco me puedan ayudar!!!