Forum Moderators: coopster

Message Too Old, No Replies

Use multiple GET variables in URL

2 in URL, change 1

         

wesg

9:02 pm on Jul 30, 2008 (gmt 0)

10+ Year Member



I've checked through the post database, but nothing yet answers my question.

I'm writing a script that uses multiple GET variables in the URL. How can I start with a URL with 2 variables, and only edit one?

IE. Current URL is ?show=50&start=10 and I want to only change start to 40?

Sekka

9:10 pm on Jul 30, 2008 (gmt 0)

10+ Year Member



You'd have to link the URL with the variables you want as you normally would.

Something along the lines of

$url = "./?show=" . url_encode ($_GET['show']) . "&start=40";

Hope this helps. Not 100% sure what you want to do.