Hi, i have an awkwar problem, and is this: I have an index.php which contains several different forms, all of them send different values with post, i have a form handler with a case selector, case uses the hidden value of each form to decide which action to trigger, several of this actions are showing another form, or showing some results from queries to a db, i have a "back" link to go back to the index.php, the problem is that aparently, some random times, whenever i click that link, this is outputed instead of the page:
HTTP/1.1 200 OK
Date: Sun, 11 Oct 2009 02:17:49 GMT
Server: Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 557
Keep-Alive: timeout=5, max=98
Connection: Keep-Alive
Content-Type: text/html
Te has logeado al sitio Omar<br>
<form method=post action=formHandler.php enctype=>
<input type=HIDDEN value=6 name=fSelector>
<input value=' Ver todos ' type=submit name=submit></form>
<form method=post action=formHandler.php enctype=>
<input type=HIDDEN value=4 name=fSelector>
<input value=' Capturar Nuevo ' type=submit name=submit></form>
<form method=post action=formHandler.php enctype=>
<input type=HIDDEN value=0 name=fSelector>
<input value='Salir del sistema' type=submit name=submit></form>
That is pretty much the html for the index.php, if i refresh that i get the correct output, the index.php looks like this:
if(isset ($_SESSION['IDUSUARIO']))
{
echo "Te has logeado al sitio "; echo $_SESSION['IDUSUARIO'];
echo "<br>";
$b = new oficio;
$u = new usuarios;
$b->setConexion($link);
$b->formMuestraOficios();
$b->formMuestraIraCaptura();
$u->logOut();
//echo "<a href=>";
//session_destroy();
}
else
{ echo $_SESSION['Snovalida'];
echo $_SESSION['Rexito'];
echo "</br>";
echo "Tienes que logear para ver el contenido";
echo "<br>";
session_destroy();
$u=new usuarios;
$u->formLogin();
unset($u);
echo "No eres usuario aun?";
echo "<a href=register.php>Registrate aqui</a>";
}
Can someone tell me what's going on please? 🙁