aca el codigo que tengo hecho.
Código PHP:
Ver original
<?php include ("config.php"); { $con = "host=$host port=$port user=$user password=$pass"; if ($_POST['indicador'] == $sesion['CLAVE']) { $_SESSION['username'] = $_POST['indicador']; echo "<script language='JavaScript' type='text/JavaScript'> location.href='../system.php'</script>"; }else { echo"<script language='JavaScript' type='text/JavaScript'> location.href='../html/autentica_clave.html'</script>"; } } else { echo"<script language='JavaScript' type='text/JavaScript'> location.href='../html/autentica_clave.html'</script>"; } ?>