3 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!C:\perl\bin\perl.exe
##!/usr/bin/perl
use strict;
use CGI qw(param);
use CGI::Carp qw(fatalsToBrowser);
$CGI::DISABLE_UPLOADS = 1;
$CGI::POST_MAX = 6 * 6;
print "Content-type: text/html\n\n";
my $text = '<a href="cap.cgi">zurück</a>';
my $max = 6;
if (param()) {
my $pass = param ('pass');
my $zahl = int ( rand($max) );
my $eingabe = $pass;
chomp $eingabe;
if ($eingabe eq $zahl) {
print "Eingabe ist Richtig!<br>$text".'<body bgcolor="#4682b4">';
} else {
print "Eingabe ist Leer oder Falsch!<br>$text".'<body bgcolor="#4682b4">';
}
} else {
print <<END;
<html>
<head>
<title>Test</title>
</head>
<body bgcolor="#4682b4">
<form action="" method="post">
<input type="text" name="pass" value=""> <br />
Bitte die Zahl eingeben! <br />
<input type="submit" name="submit" value="Abschicken">
<input type=reset value="Abbrechen">
</form></p>
</body>
</html>
END
}
3 Einträge, 1 Seite |