Created
December 16, 2016 12:34
-
-
Save gunaevart/1d5c5405cca7361063ef634adfd999df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
header('Content-type: text/html; charset=utf-8'); | |
if(!isset($_SESSION['count'])){ | |
$_SESSION['count'] = 0; | |
} | |
if(isset($_GET['plus'])) | |
{ | |
$_SESSION['count']++; | |
header('Location:'.$_SERVER['PHP_SELF']); | |
} | |
?> | |
<span> | |
<a href="?plus">скачать</a> | |
Кнопки нажали <?=$_SESSION['count']?> раз | |
</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment