http://php.flashwebhost.com/annie/webcounter.php
Code:<?php session_start(); if (isset($_SESSION['webCounter'])) { echo '<p>Welcome, you visited this page ' . $_SESSION['webCounter'] . ' times before. </p>'; $_SESSION['webCounter'] = $_SESSION['webCounter'] + 1 ; } else { echo '<p> This is your first visit to this page. Welcome! </p>'; $_SESSION['webCounter'] = 1; }




Reply With Quote
Bookmarks