<?php
if(isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views']+1;
else
$_SESSION['views']=1;
?>
<?php
if ( $_SESSION['views'] > 10 ) {
header( 'Location: http://myurl.net/cap/example_form.php' ) ;
}
?>
the views is being set i checked though the print_r function just the last if statementis not working i use the if > all over my website which seems to work..

New Topic/Question
Reply



MultiQuote









|