Incrementing a page link, refresh problem

From: Date: Tue, 08 Aug 2006 13:54:08 +0000
Subject: Incrementing a page link, refresh problem
Groups: php.general 
Request: Send a blank email to php-general+get-240315@lists.php.net to get a copy of this message
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.

« previous php.general (#240315) next »