URL manipulation
Results 1 to 3 of 3

Thread: URL manipulation

  1. #1
    Senior Member
    Join Date
    Apr 2005
    Posts
    1,296

    URL manipulation

    I have a URL with sometimes multiple conditions in them. for example

    index.php
    index.php?A=ABC
    index.php?A=ABC&B=ABC


    What I want to be able to do is remove one of these conditions, say in example 3 I want to remove condion A=ABC - how can I do this?

  2. #2
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Contact Unit "Coping Mechanism"
    Posts
    22,315
    RTFM
    parse_url
    urldecode
    And related functions listed on those pages.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  3. #3
    High Energy Magic Dept. NogDog's Avatar
    Join Date
    Aug 2006
    Location
    Ankh-Morpork
    Posts
    14,478
    You may find parse_str() to be useful, too.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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