Gracias Amigo! Eso fue correcto no me habia fijado en ese pequeño detalle! Agregue el echo y listoooo! Adjunto el codigo del Formulario Final
Código PHP:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
@session_start(); //@ previene warning contra sesiones automáticas (no recomendado)
if (isset($_SESSION['form']))
{
$form = $_SESSION['form'];
unset($_SESSION['form']);
}
else
{
$form = array();
$form['user'] = '';
$form['nombre'] = '';
$form['apellido'] = '';
$form['cedula'] = '';
$form['telefono'] = '';
}
//Sino, carga el arreglo en blanco, con esto prevenimos ese notice
if(!isset($_SESSION["user"]))
{
$mensaje='No ha iniciado sesión, por favor verifica los datos o contacta al administrador.';
print "<script>alert('$mensaje')</script>";
print("<script>window.location.replace('index.php');</script>");
exit;
}
if (($_SESSION['privilege'])=='yes')
{
?>
<!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>
<style type="text/css">
body
{
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
color: black;
background-color: #FFFFFF
}
.contenedor {position:relative; width:1024px; height:768px; margin:0px auto; text-align:center;}
.cuerpo {width:1024px; height:300px; text-align:center;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Registrar Usuarios</title>
</head>
<div class="contenedor">
<body align="center" style='background-repeat:no-repeat; background-position: 50% 0%;' background="/prueba1/images/fondo.png">
</br></br></br></br></br></br></br></br></br></br></br>
<h2>Registro de Usuarios</h2>
<h3>Ingrese los datos del Usuario a Registrar</h3>
<div class="cuerpo">
<form action="registroUsuarios.php" method="post">
<table align="center">
<tr>
<td align="left">Usuario:</td>
<td align="center"><input type="text" value="<?php echo $form['user'] ?>" name="user" size="25" /></td>
</tr>
<tr>
<td align="left">Contraseña:</td>
<td align="center"><input type="password" size="25" name="password" /></td>
</tr>
<tr>
<td align="left">Es Administrador?:</td>
<td align="center">
<SELECT style="width:176px; align:center;" align="center" NAME="esadmin">
<OPTION value="SI">SI</OPTION>
<OPTION value="NO" SELECTED>NO</OPTION>
</SELECT></td>
</tr>
<tr>
<td align="left">Nombre:</td>
<td align="center"><input type="text" size="25" value="<?php echo $form['nombre'] ?>" name="Nombre"/></td>
</tr>
<tr>
<td align="left">Apellido:</td>
<td align="center"><input type="text" size="25" value="<?php echo $form['apellido'] ?>" name="Apellido"/></td>
</tr>
<tr>
<td align="left">Cedula:</td>
<td align="center" valign="middle"><input type="text" size="1" name="vzlano" value="V-" disabled=true/><input type="text" size="20" value="<?php echo $form['cedula'] ?>" name="Cedula"/></td>
</tr>
<tr>
<td align="left">Teléfono:</td>
<td align="center"><input type="text" size="25" value="<?php echo $form['telefono'] ?>" name="Telefono"/></td>
</tr>
</table>
<?php ?>
</br>
<button name="submit" type="submit" title="Submit" >
<img src="/prueba1/images/Ok.png" width="64" height="64" border="0"></br>Enviar
</button>****
<button name="Borrar" onClick="location.reload(false)" title="Borrar" >
<img src="/prueba1/images/trash.png" width="64" height="64" border="0"></br>Borrar
</button>****
<button name="atras" onclick=" location.href='PanelUsuarios.php' " type="button" title="Atras" >
<img src="/prueba1/images/atras.png" width="64" height="64" border="0"></br>Atrás
</button>
</div></div>
</form>
</body>
</html>
<?php
}
else
{
$mensaje99='No tienes los privilegios suficientes para acceder a esta Página, por favor Contacta al Administrador .';
print "<script>alert('$mensaje99')</script>";
print("<script>window.location.replace('index.php');</script>");
exit;
}