Re: Incrementing the value

From: Date: Thu, 03 Oct 2002 09:25:10 +0000
Subject: Re: Incrementing the value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118715@lists.php.net to get a copy of this message
Hello, PN><a href="Delay.php?hid=<?php echo $_GET['hid']+1; ?>"><img PN>src="Gif/nextque.gif" PN> 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..?? Regards, Uma

« previous php.general (#118715) next »