SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot Jppr's Avatar
    Join Date
    Dec 2000
    Location
    Belgium
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    In some script, I need to reload the current page, but with an additional value after that url.

    For example, the current page is
    http://www.something.com/admin.php?where=category&id=2

    And I want to reload the whole thing, but with an url like
    http://www.something.com/admin.php?w...ory&id=2&del=1

    But I don't exactly know which name-value pairs will already be stored in the url. I just want to add that extra del stuff.

    How can I do that in PHP?

  2. #2
    Non-Member
    Join Date
    Apr 2000
    Location
    Waco, Texas.
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did not have time to test this sorry, but try:

    header("Location: $PHP_SELF?$QUERY_STRING&del=1");

  3. #3
    SitePoint Zealot Jppr's Avatar
    Join Date
    Dec 2000
    Location
    Belgium
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx, I'll try it tomorrow.

    </t>

  4. #4
    SitePoint Zealot Jppr's Avatar
    Join Date
    Dec 2000
    Location
    Belgium
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, it works. Great.

    Thanks, robp.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •