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 Malinda 21st May 2024

This article provides a great introduction to programming concepts with a practical example. While it focuses on code, there's a fun and engaging way to learn about sustainability and decision-making through gameplay. Monkey Mart challenges players to manage a grocery store while making environmentally conscious choices.  It's a great way to combine fun with learning, just like the programming examples in this article! 
 

Write a comment ...
Post comment
Cancel
profile bla 3rd May 2024

connect 4 Favorite classic game

Write a comment ...
Post comment
Cancel
profile inserts 23rd April 2024

Moreover, We cutting inserts have high Kyocera Inserts brittleness. There s no need for Drilling Carbide Inserts other processes such as regrinding and cutting after metallurgy sintering and forming. It enhances the cutting smoothness and service of the carbide china insert blade.

Write a comment ...
Post comment
Cancel
profile 3rd November 2023

This website has a wealth of important information. You can unwind and play your favorite games here: five nights at freddy's security breach

Write a comment ...
Post comment
Cancel
profile Nelly 9th October 2023

Heardle is game guess the song, you can immerse yourself in the world of music 
 

Write a comment ...
Post comment
Cancel
profile Matt 5th October 2023

Thanks for the code! I am wondering whether the 1243 angel number code will work even if you put a year such as 3000, 2222, or 911 angel number, instead of our actual years 96 meaning (2023 currently.)

Write a comment ...
Post comment
Cancel
profile Harold 25th August 2023

On the plane with nothing to do, play today's most famous cookie clicker game.

Write a comment ...
Post comment
Cancel
profile andree 23rd August 2023

The objective of taylor swift heardle is straightforward: guess the correct title of Taylor Swift's songs in the shortest possible time.

Write a comment ...
Post comment
Cancel
profile donky 28th July 2023

I've read some good stuff here. Definitely worth this mark for reconsideration. I'm not sure why but this site Car Games  is pretty awesome for me.

Write a comment ...
Post comment
Cancel
profile sara 28th June 2023

Thank you for providing such an informative essay on this subject. This has truly made me think, and I'm looking forward to reading more. play dordle game

Write a comment ...
Post comment
Cancel
profile dordle 26th April 2023

Redactle is a word-guessing game where you cover up all the words on a Wikipedia page. It only has prepositions, articles, and periods. Your last goal is to figure out what it is about.

Write a comment ...
Post comment
Cancel
profile Peter 5th April 2023

In order to keep the fuel injectors running smoothly, fuel injector cleaners are often used. Some cleaners help to break down the carbon deposits that can build up over time, and others may help to lubricate the injectors, preventing them from wearing down over time. https://myfuelinjector.com/best-fuel-injector-cleaner-for-nissan-altima/

Write a comment ...
Post comment
Cancel
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