Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST)){
- if(isset($_COOKIE["amin_contatore"])){
- $contatore = $_COOKIE["Amin_Count"] + 1;
- setcookie("Amin_Count", $contatore, time() + (60 * 60 * 24 * 7));
- }
- else{
- $contatore = 1;
- setcookie("Amin_Count", $contatore, time() + (60 * 60 * 24 * 7));
- }
- }
- ?>
- <html>
- <head>
- </head>
- <body>
- <p>Ciao</p>
- <p>Sei entrato <?php echo $contatore." volte";?> in questa pagina</p>
- <form action="contatore.php" method="post">
- <input type="submit" name="submit" value="ricarica"/>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment