Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/01/2012, 04:08
apadravya
 
Fecha de Ingreso: enero-2012
Mensajes: 56
Antigüedad: 12 años, 3 meses
Puntos: 1
Respuesta: PHP, ¿llamar a una url?

ok, la idea me gusta:

hacemos que en el boton de enviar del captcha nos redirija a la web que me interesa en el frame que me interesa, eso es facil.

Cita:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<img src="captcha.php" width="200" height="50" vspace="3"> <p><br></p>
<input name="tmptxt" type="text" size="10"><p><br></p>
<a href="http://www.forosdelweb.com/f18/agregar.php" target="leftFrame"><input name="btget" type="submit" class="boton" value="Entrar"></a>
<a href="http://www.forosdelweb.com/f18/izquierda.html" target="leftFrame"><input type="button" value="Volver"></a>
<input name="action" type="hidden" value="checkdata">
</form>
LA GRACIA: como podemos hacer para que solo nos redirija si el captcha es correcto?

por si ayuda... el php del captcha es:

Cita:
<?php
session_start();
if ($_POST['action'] == "checkdata") {
if ($_SESSION['tmptxt'] == $_POST['tmptxt']) {
echo '<a href="http://www.forosdelweb.com/f18/agregar.php" target="leftFrame">Click aqui<br>(Este pantallazo blanco esta en obras)</a>';
} else {
echo "Intentalo nuevamente";
}
exit;
}
?>