It's not very clear what you want but the following could be it:
> 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
>
I think you mean ++$hid, otherwise the value is inserted before it is
incremented,
and why not change to $_GET["hid"] for future compatibility and just to make
sure.
Are there any scoping issues we don't know about, e.g. is this snippet
within a function?
Tim Ward
www.chessish.com
> -Origina
Try $hid++;
This automatically increments by one, its just much easier to deal with
than +1 .. besides, it wouldn't work on my Win32 platform, either.
--Jason
Uma Shankari T. wrote:
> Hello ,
>
>border="0">
>
> While clicking this link the $hid value get incremented and fetch the value
3 matches
Mail list logo