Normal year and leap year calculator
84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
$_GET['num1'] does not exist when you first enter. It will be an error to assign a non-existent value to a variable, so give $num1 an initial value, such as: $num1 = isset($_GET[' num1']) ? $_GET['num1'] : 2019;
If you don't want the sentence "2019 is a normal year" to appear as soon as you refresh, modify the program as follows:
if (!empty($_GET['num1'])){
$num1=$_GET['num1'];
if(!i
You can print out the value of $num1 when entering for the first time. I guess it is NULL. NULL cannot be used as an operation.