Hi,
thanks for replying, I am not very good with the "list" function thats why i
use foreach instead.
My new problem is that i also have to take out the PHPSESSID if it exists
and its value otherwise i am getting 2 PHPSESSID's in my url...how can i do
that with your sample code?
Thanks,
-Ryan
> Personally, I like list() + each() + while() combo, like so :
>
> while(list($key,$val) = each($_GET)){
> if ($key == "page")
> {
> $newpage = $val + 1;
> $getstring .= $key&$newpage;
> } else { $getstring .=$key&$val; }
> }
> $url = "page.php?"+$getstring;
>
> As a side note, PHP is not strictly typed. So you aren't getting an
> int per se, just a string that's a number :)
>
> --
> Regards,
> Burhan Khalid
> phplist[at]meidomus[dot]com
> http://www.meidomus.com
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php