Implementation results:
Implementation code:
<meta charset= "UTF8";
<body>
<table Border= "1" align= "center" width= "height=" 101 "cellpadding=" 1 "cellspacing=" 1 "bgcolor=" #ccff00 ";
<tr ><TD height= "align=" center "colspan=" 2 "> determines whether the specified year is a leap years </td></tr>
<tr bgcolor= #ffff99
<td width= "height=" > Please enter a four-digit year: </td>
<td;
<form action= "method=" Post "
<input type=" text "name=" year ";
<input type=" Submit "name=" submit "value=" calculation ";
</ Td>
</tr>
<tr>
<td colspan= "2" align= "center";
<?php
if (isset ($_post[) Submit ']) {
if ($_post[' year ']== "") echo "Please enter years before submitting!";
else{
$year =$_post[' year '];
$result = ($year%4==0&& $year%100!=0) | | ($year%400==0)? $year. " is a leap year ": $year." Not a leap year ";
Echo $result;
}
}
,
</td>
</tr>
</table>
</body>
Actual PHP project-year to determine whether it is leap years