-
Notifications
You must be signed in to change notification settings - Fork 0
/
8.php
40 lines (38 loc) · 1.2 KB
/
8.php
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
<?php
if(isset($_GET["number1"]) and isset($_GET["number2"]) and isset($_GET["number3"])){
$number1 = $_GET["number1"];
$number2 = $_GET["number2"];
$number3 = $_GET["number3"];
if($number1 > $number2 and $number1 > $number3){
echo $number1;
}elseif ($number2 > $number1 and $number2 > $number3) {
echo $number2;
}elseif ($number3 > $number1 and $number3 > $number2) {
echo $number3;
}elseif($number1 == $number2 and $number1 > $number3){
echo $number1;
}elseif($number2 == $number3 and $number2 > $number1){
echo $number2;
}elseif($number1 == $number3 and $number2 > $number1){
echo $number1;
}elseif($number1 = $number2 = $number3){
echo "number1 = number2 = number3 ";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="" method="get">
number1:<input type="number" name="number1"></br>
number2:<input type="number" name="number2"></br>
number3:<input type="number" name="number3"></br>
<button>sabt</button>
</form>
</body>
</html>