Hello all,
Sorry for my noob again. I want to get captcha image in my registration form and I tried to search captcha. I found that Secure Image captcha suit with my needs. I tried to install it and look their example form. But I didn't get like what i want. Because they didn't give us like that they shown in their demo.
I want to get like this demo exactly.
http://www.phpcaptcha.org/try-securimage/
In their example php, it's give like that, please kindly see the screen shot,
In the second picture, it showing validating message, but when the validation message show, Image Verification and forms are disappear.
I want to get like one is like, the example they show, please kindly see the screen shot.
In the second picture of their example, validate message is shown upon and forms are not disappear.
The one I want is exactly like that one.
Can anyone help me out ? Please kindly help to me.
This is the example_form.php code, that give it in package.
<html>
<head>
<title>Securimage Test Form</title>
</head>
<body>
<?php
if (empty($_POST)) { ?>
<form method="POST">
Username:<br />
<input type="text" name="username" /><br />
Password:<br />
<input type="text" name="password" /><br />
<!-- pass a session id to the query string of the script to prevent ie caching -->
<img src="securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>"><br />
<input type="text" name="code" /><br />
<input type="submit" value="Submit Form" />
</form>
<?php
} else { //form is posted
include("securimage.php");
$img = new Securimage();
$valid = $img->check($_POST['code']);
if($valid == true) {
echo "<center>Thanks, you entered the correct code.</center>";
} else {
echo "<center>Sorry, the code you entered was invalid. <a href=\"javascript:history.go(-1)\">Go back</a> to try again.</center>";
}
}
?>
</body>
</html>
Thanks. Please help me.