Miren esto hice yo:
Creacion de imagen:
captcha.php
Código PHP:
Ver original<?php
$rand = rand(1, 9999999); $_SESSION["hash"] = md5($rand);
header("Content-Type: image/png"); $im = @imagecreate(80, 25) or
die("Cannot Initialize new GD image stream"); ?>
y ya que tengo la session en md5 hago lo siguente
Código HTML:
Ver original<form method="post" action="index.php"> Código
<img src="captcha.php" /><input type="text" style="visibility:hidden;" name="captcha2" value="<?php echo $_SESSION["hash"]; ?>" readonly="readonly" />
<input type="text" name="captcha1" /><input type="submit" value="go">
Lo arranco pero siempre el captcha1 fall