Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Controllo data</title>
- <style type="text/css">
- p{
- text-align: center;
- color: green;
- font-size: 150px;
- }
- </style>
- </head>
- <body>
- <?php
- $g=$_GET['giorno'];
- $m=$_GET['mese'];
- $a=$_GET['anno'];
- if(checkdate($m,$g,$a)){
- echo "<p>Data corretta</p>";
- }else{
- echo "<p style=\"color: red;\">Data NON corretta</p>";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement