Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/04/2005, 14:40
ThunderFx
 
Fecha de Ingreso: diciembre-2003
Ubicación: Campehce, Mexico
Mensajes: 325
Antigüedad: 20 años, 4 meses
Puntos: 0
Codigo que se corta ...

Hola amigos, estoy programando un sistema de usuarios, lo que pasa es que en que hago un include a form.php como no esta logueado pues aparece el codigo para logear, obviamente, el problema es que si no esta logeado despues del include se corta y ya no continua el codigo :(

pueden verlo en www.calkinienses.com y el codigo de form.php es:
Código PHP:
<?

session_start
();
if (!
session_is_registered("login"))
    die (
"<form method='POST' action='login.php'>
              <div align='center'>
                <center>
                <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='100' id='AutoNumber1'>
                  <tr>
                    <td colspan='2'><font face='Tahoma' size='1'>&nbsp;</font></td>
                  </tr>
                  <tr>
                    <td align='right'>
                    <font face='Tahoma' style='font-size: 8pt; font-weight: 700'>
                    Usuario:</font></td>
                    <td>
                    <input type='text' name='usuario' size='17' style='font-family: Arial; font-size: 8pt; color: #000080; font-weight: bold; border-style: dotted; border-width: 1; background-color: #DFE8F7'></td>
                  </tr>
                  <tr>
                    <td align='right'>
                    <font face='Tahoma' style='font-size: 8pt; font-weight: 700'>
                    Contraseña:</font></td>
                    <td>
                    <input type='text' name='password' size='17' style='font-family: Arial; font-size: 8pt; color: #000080; font-weight: bold; border-style: dotted; border-width: 1; background-color: #DFE8F7'></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>
                    <p align='center'>
                    <input type='submit' value='Entrar' name='entrar' style='font-family: Arial; font-size: 8pt; color: #0A346C; font-weight: bold; border-style: dotted; border-width: 1; background-color: #C2D2F0'></td>
                  </tr>
                </table>
                </center>
              </div>
            </form>"
);
?>
Si alguien sabe espero ayuda