RE: Incrementing the value

From: Date: Fri, 04 Oct 2002 21:20:45 +0000
Subject: RE: Incrementing the value
Groups: php.general 
Request: Send a blank email to php-general+get-118908@lists.php.net to get a copy of this message
It's not very clear what you want but the following could be it: <?if(!isset($_GET['hid'])) {$h=1;} else {$h=$_GET['hid'];}?> <a href="Delay.php?hid=<?php echo $h+1; ?>"> <img src="Gif/nextque.gif" border="0"></a> > i have written code such that initially it will display the value > correspond to the value 1..after every click it will increment the value > 2,3...so on..but now it is displaying the value 1 and for after each click > again it is displaying 1 and 2...so on > I have intiallised the value for the variable as > if(!$_GET['hid']) > $hid=1; > like that..Can anyone please tell me how to avoid displaying the value 1 > again..?? ____________________________________________________________ Watch a championship game with Elway or McGwire. Enter Now at http://champions.lycos.com

« previous php.general (#118908) next »