Check Leap Year Program

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";
        }
}
 ?>
 


 
 Leap Year
 

 

 


 
 
   
           
   
 
 

Enter the year:  
   

 if(isset($_POST['submit'])){   
                        echo $leap;      }  
     
     ?>   
           

 

In this code output(It is not a leap year) is displaying before entering the input value.

the output should get after giving input value. how to solve it?

0   0
shubhangi kendre
profile marget 25th March 2023

 

Another important factor to consider is the TV’s resolution. Resolution refers to the number of pixels that make up the television’s image. The higher the resolution, the more detailed and clear the image will be. If you plan to view HD content such as Blu-ray movies or streaming services, then look for a TV with at least 1080p resolution. For 4K content, you’ll want to look for a TV with 4K UHD resolution. https://fittvhub.com/best-tv-for-video-wall/

Write a comment ...
Post comment
Cancel
profile fnaf 24th March 2023

Freddy Fazbear's fnaf security breach is a survival horror game set in the Mega Pizzaplex. You will take on the role of Gregory, a boy who has been trapped inside all night. When the surprisingly powerful Pizzaplex lockout takes effect, you must survive while looking for a way out. Let's look at how to play Security Breach right now.

Write a comment ...
Post comment
Cancel
profile dordle 24th March 2023

In dordle is a great game to have around when you're sad, tired, or just need a little reminder that life is great!

Write a comment ...
Post comment
Cancel

Related Post

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site