Php code works on every browser but not on IE8, help please
<p>I think the error has to be in a incompatibility with IE8 and the cookies manipulation, cuz in IE8 you can see the password and login asking screen but when you enter the data and send it the browser seems to do nothing, this is a url you were you can try my code: <a href="http://200.8.27.127/tiempo/teacher.php" rel="nofollow">http://200.8.27.127/tiempo/teacher.php</a></p>

<p>and this is the code: </p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta content="it" http-equiv="Content-Language" /&gt;
&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;
&lt;title&gt;Formulario&lt;/title&gt;
&lt;style type="text/css"&gt;
h1 {    font: 50px Tahoma, Helvetica, Arial, Sans-Serif; text-align: center; color: #111; text-shadow: 0px 2px 3px #555;    }
h2 {    font: 14px Tahoma, Helvetica, Arial, Sans-Serif; text-align: center; color: #CCC; text-shadow: 0px 1px 2px #555;    }
h3 {    font: 10px Tahoma, Helvetica, Arial, Sans-Serif; text-align: center; color: #CCC;   }
b1 {    font: 16px Tahoma, Helvetica, Arial, Sans-Serif; color: #DDD;   }
b2 {    font: 10px Tahoma, Helvetica, Arial, Sans-Serif; color: #F9F7ED;    }

.caja {  width: 690px; height: 40px; background-color: transparent; border: 0px solid #000000; font-size:x-large; color: #222; font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-weight: bold;" size="299";  }
.style1 {   text-align: right; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body style="background-image: url('IMG/bg.png')"&gt;
&lt;script type="text/javascript" src="JS/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="JS/jquery.notifications-1.1.min.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="JS/jquery.notifications.css" /&gt;
&lt;script&gt; function checkCharCount(textfield) { if(textfield.value.length &gt; 300) textfield.value = textfield.value.substr(0, 300); document.getElementById("charCounter").innerHTML = 300 - textfield.value.length; } &lt;/script&gt;
&lt;?php
include("/LIB/HeadSQL.php");
include("/LIB/error.php");
if (isset($_COOKIE['ID_tablon'])) { 
        $username = $_COOKIE['ID_tablon']; 
        $pass = $_COOKIE['Key_tablon'];
        $check = mysql_query("SELECT * FROM usuarios WHERE nombre = '$username'") or die(mysql_error());
        while($info = mysql_fetch_array( $check )) {
            if ($pass != $info['clave']) {
                login();
            }
            else {
                entro($info['email'],$username);
            }
        }
} else {
    login();
}


function login()
{
    if (isset($_POST['quiere'])) {
        if(!$_POST['username'] | !$_POST['pass']) {
            include("LIB/login.php");
            error('Debes llenar todos los campos.',0);
        } else {
            $check = mysql_query("SELECT * FROM usuarios WHERE nombre = '".$_POST['username']."'") or die(mysql_error());
            $check2 = mysql_num_rows($check);
            if ($check2 == 0) {
                include("LIB/login.php");
                error('Ese usuario no existe.',0);
            }
            while($info = mysql_fetch_array( $check )) {
                $_POST['pass'] = stripslashes($_POST['pass']);
                $info['clave'] = stripslashes($info['clave']);
                //$_POST['pass'] = md5($_POST['pass']);
                if ($_POST['pass'] != $info['clave']) {
                    include("LIB/login.php");
                    error('La clave es incorrecta.',0);
                } else { 
                    $_POST['username'] = stripslashes($_POST['username']); 
                    $hour = time() + 3600; 
                    setcookie("ID_tablon", $_POST['username'], $hour); 
                    setcookie("Key_tablon", $_POST['pass'], $hour); 
                    entro($info['email'],$_POST['username']);
                }
            } 
        } 
    } else {
        include("LIB/login.php");
    }
    exit;
}


function entro($email,$username)
{
?&gt;

&lt;div id="todo" align="center" &gt;
    &lt;div id="cabeza" style="width:850px;height:100px"&gt;
    &lt;/div&gt;
    &lt;div id="contenido" style="width:850px;height:420px;background-image: url(IMG/cuadro.png)" &gt;
        &lt;div id="titulo" style="width:765px;height:75px;padding-top: 18px;margin: auto;text-align: left;"&gt;
            &lt;b1&gt;Bienvenido &lt;b&gt;&lt;?php echo($username); ?&gt;&lt;/b&gt;&lt;/b1&gt;&lt;br&gt;
            &lt;?php $check = mysql_query("SELECT * FROM sms WHERE ref = '".$username."' ORDER BY fecha DESC LIMIT 0, 1") or die(mysql_error());
            while($info = mysql_fetch_array( $check )) { 
                echo("&lt;b1&gt; Tu ultimo mensaje enviado fue: &lt;/b1&gt;&lt;b2&gt;" . $info['texto'] . " enviado el " . $info['fecha'] . "&lt;/b2&gt;");
            }
            ?&gt;
        &lt;/div&gt;
        &lt;form method="post"&gt;
        &lt;div id="formulario" style="width:850px;height:255px;margin-top: 10px"&gt;
            &lt;div id="foto" align="right" style="width:725px; height:40px;padding-top: 11px;margin: auto"&gt;
                &lt;?php $size = 60; $grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( $email ) ) . "?size=" . $size; 
                $size = 256; $grav_urlB = "http://www.gravatar.com/avatar/" . md5( strtolower( $email ) ) . "?size=" . $size;
                echo('&lt;img alt="Image" src="' . $grav_url . '" /&gt;'); ?&gt;
            &lt;/div&gt;
            &lt;div id="texto" style="width:850px;height:29px; margin-top: 38px;margin-left: 4px"&gt;
                    &lt;input name="sms" type="text"  onKeyUp="checkCharCount(this)" class="caja"  /&gt;
            &lt;/div&gt;
            &lt;div id="botones" style="width:725px;height:27px; margin-top: 15px" class="style1"&gt;
                &lt;input name="usuario" type="hidden" value="&lt;?php echo($username); ?&gt;" /&gt;

                &lt;input name="Submit1" type="image" value="submit" src="IMG/envia.png" /&gt;
            &lt;/div&gt;
            &lt;div id="resta" style="width:850px;height:29px; margin-top: 53px;margin-left: 4px"&gt;
                &lt;h2&gt;&lt;span id="charCounter"&gt;300&lt;/span&gt; caracteres restantes.&lt;/h2&gt;
                &lt;h3&gt;&lt;a href=logout.php&gt;Cerrar Sesion&lt;/a&gt;&lt;/h3&gt;
            &lt;/div&gt; 

        &lt;/div&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;


&lt;?php
session_start();
if (isset($_POST['Submit1'])) {
if (isset($_SESSION['token']) &amp;&amp; (time() - $_SESSION['token']) &lt; 5) {
   error('Debes esperar 5 segundos para poder enviar otra informacion.',0);
} else { 
   $_SESSION['token'] = time();
   include("/LIB/HeadSQL.php");
   include("/LIB/comprueba.php");
   $insert = "INSERT INTO sms (ref, texto, fecha) VALUES ('" . addslashes($_POST['usuario']) . "', '" . addslashes($_POST['sms']) . "', NOW() )";
   $add_member = mysql_query($insert);
   error("Tu mensage ha sido enviado con exito.",1);
}
}
    exit;
}
?&gt;
</code></pre>

<p>do you think the isuue can be on the javascript?</p>

<p><strong>try the code firts with Firefox or google chrome, then try in IE8.</strong></p>
