form.php
Código PHP:
<form method="post" action="process.php">
<img src="image.php" border="0"><br />
<input type="text" name="image"><br />
<input type="submit" value="Submit">
</form>
Código PHP:
<?php
session_start(); //Start the session
$session = $_SESSION['captcha']; //Define the session we set in image.php
$image = $_POST['image']; //Define the post
$image = md5($image); //MD5 encrypt the post
if ($session == $image){ //if they have put the right text in
echo "Correct!";
}else{
echo "Incorrect!";
}
?>
Código PHP:
<iframe marginwidth="0" marginheight="0" scrolling="no" frameborder=0 src="....../form.php" width="453" height="250"> </iframe>