- Joined
- Nov 6, 2007
- Messages
- 880
- Reaction score
- 11
Well here it goes
Rand = Random, it will randomize the numbers through the varibles ( 100-1000)
PHP:
<? session_start(); ?>
<?php
$rawr = rand(**** 10000);
$_SESSION['rawr'] = $rawr ;
$capcha = $rawr;
?>
<? echo("$rawr"); ?><form method="post" action="rawr.php">
capcha: <input type="text" size="10" maxlenght="5" name="rawr">
<input="sumbit">
PHP:
<? session_start(); ?>
<?php
$capcha = $_POST['rawr'];
if ( $capcha == $rawr ) {
echo "Thank you, you may proceed";
} else {
echo "you /fail";
}
session_destroy();
?>
Last edited: