Ver Mensaje Individual
  #11 (permalink)  
Antiguo 28/01/2008, 10:24
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Re: ayuda con login php..

Solo mueve de lugar tus menus:
Código PHP:
<?php
session_start
();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>TodoDiver</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="text.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<table width="770" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td bgcolor="#FFFFFF"><table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php

echo 'Bienvenido';
if (isset(
$_SESSION['k_username'])) {
echo 
'<b>'.$_SESSION['k_username'].'</b>.';
echo 
'<p><a href="logout.php">Logout</a></p>';
}else{
echo 
'<p><a href="login.php">login</a></p>
<p><a href="registrar.php">registrar</a></p>'
;
}
?>
Saludos.