programming-examples/php/_Basics/PHP Program to find whether a year is LEAP year or not.php

14 lines
237 B
PHP
Raw Normal View History

2019-11-15 12:59:38 +01:00
<?php
if(isset($_POST['submit']))
{
$year=$_POST['year'];
if($year%4==0)
{
$leap="It is a leap year";
}
else
{
$leap="It is not a leap year";
}
}
?>