Add exams from exam156 to exam199
This commit is contained in:
27
exam164/index.php
Executable file
27
exam164/index.php
Executable file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
|
||||
if(!isset($_POST['secure'])){
|
||||
$_SESSION['secure'] = rand(1000, 9999);
|
||||
}else {
|
||||
if($_POST['secure'] == $_SESSION['secure']){
|
||||
echo 'You are not robot';
|
||||
} else {
|
||||
echo 'Try again';
|
||||
$_SESSION['secure'] = rand(1000, 9999);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<br>
|
||||
<img src="generate.php"/><br>
|
||||
|
||||
<form action="index.php" method="POST">
|
||||
Write a number from picture:
|
||||
<input type="text" size="6"name="secure">
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
Reference in New Issue
Block a user