Incrementing a page link, refresh problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I write a session to determine what module a user is on


$_SESSION['module_no']==1;

when they get to the end of the module I want to create a dynamic link to 
the next module

$increment = $_SESSION['module_no']++;
$link= "../module_$increment.php";

The problem is every time the page is refreshed $increment is added to. Any 
ideas or ways around this. I do not want to create an 'end_of module.php' 
page for every module.

R.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux