9

I am given a page url like 'http://abc.com/test.php?a=1&b=2&c=3'. Now I have been told to change the value of b to 5 so that it becomes 'http://abc.com/test.php?a=1&b=5&c=3'.

i.e change from http://abc.com/test.php?a=1&b=2&c=3 to http://abc.com/test.php?a=1&b=5&c=3

Note: variable b here can refer to any name.

1
  • Do you want to do this on just one single page, or for that query string variable across lots of different pages? Commented Oct 27, 2010 at 21:37

1 Answer 1

21

Use

Sign up to request clarification or add additional context in comments.

1 Comment

Since this question is closed, but getting a lot of traffic, I thought it useful to mention that Pear has a class that handles all of this. See stackoverflow.com/a/33109595/3852461

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.