[SOLUCIONADO] Ayuda para redireccionar al entrar

Iniciado por metal8, Julio 29, 2012, 04:55:10 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Julio 29, 2012, 04:55:10 PM Ultima modificación: Junio 10, 2015, 01:14:24 PM por Expermicid
hola quiero hacer que cuando alguien ingrese la clave como aca
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

cuando uno ponga la contraseña lo rediriga a por ejemplo You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

el codigo de la web de arriba

Código: html5
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Crypter Online</title>
<meta name="Crypter Online" content="ForoMalware">
<link rel="shortcut icon" href="favicon.ico">
    <script language="JavaScript" type="text/javascript">
var i=0;
var conectar;
function add()
{
  var d=document.getElementById('binder');
  var inpt = document.createElement("input");
  var texto = document.createElement('span');
  i=i+1;
  inpt.setAttribute('name','bind[]');
  inpt.setAttribute('type','file');
inpt.setAttribute('id',i);

  d.appendChild(inpt);
  texto.innerHTML = '<br />';
  d.appendChild(texto);
}

function rem()
{
  d=document.getElementById(i);
  padre = d.parentNode;
  padre.removeChild(d);
  i=i-1;
}
</script>
<style type="text/css">
</style>
</head>
<body>
    <?php
if(!isset($_POST['pass']))
{
?>
    <form action="#" method="post">
<div id="container">
  <center>
   
<input type="password" name="pass" style=""><br>
<input type="submit" value="Entrar">
</form>
  </center>
</div>
<?php
}elseif($_POST['pass']=="1234567")
{
?>
<div id="con">
    <form name="form1" action="procesar.php" method="post" enctype="multipart/form-data">
<center>
<input type="file" name="archivo"><br>
  <input type="submit" value="Enviar">
</center>
<div id="binder">
      </div>

    </form>
  </div>
<?php
}else{

echo "<script>alert('Contraseña Incorrecta , Vuelva a Intentarlo')</script>";
echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://programacion-net.es/p'>";

}
?>
</body>
</html>



Lo puedes hacer con un simple script asi:

Código: javascript
<script language="JavaScript">
var pagina="http://sniferl4bs.blogspot.com/"
function redireccionar()
{
location.href=pagina
}
setTimeout ("redireccionar()", 100);
</script>


Saludos :P
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login


Llaman traidor a la persona que evito que caiga el foro, gente bruta!



Por lo que veo no has leido mucho de php, eso lo haces redireccionando a la web que tu quieres..  Como haces esto?
Si haces con php un algoritmo que diga, que si la pass es correcta este te redireccione a Underc0de. Eso lo haces con un simple If y Header.
Código: php

if($_POST['Enviar']=='Contraseña')
   {
       $pagina = "http://www.tuweb.com";
       Header("Location: $pagina");
   }


Saludos,, Cronos.-