14 lines
237 B
PHP
14 lines
237 B
PHP
|
<?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";
|
||
|
}
|
||
|
}
|
||
|
?>
|