Hi,
I have a search page that is working perfectly so far and i have paginated
it, the problem is the "next" page is giving me a slight problem.

I am sending around 30 parameters via a $_GET and the "next" page must get
the same parameters with the $page+1...instead of doing it manually I have
tried using a foreach loop but I guess i am doing something wrong as i still
dont understand them very well, my requirment is pretty simple get all the
$_GET variables and their values into another variable or array and +1 the
$page variable(I am getting a $_GET['page'] which is an int)

Looking at the manuals examples I have experimented with this example
"foreach (array_expression as $key => $value) statement"

using this:
foreach ($_GET as $a => $v) {
   print "Current value of \$a: $v.\n";
}
 (Chapter 11. Control Structures) but no success.

Kindly help.

Thanks,
-Ryan


We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to