• 0

php's urlencode()


Question

I have a string in a database row:

"Introductory Programming - C & C++"

the problem is the plus signs, ampersand and dashes.

at the same time i have a drop down menu with this item. I need to compare the database row to the posted field but it never matches with urlencode(). Any ideas?

I've noticed it omits (i've tried printing it) everything after 'Introductory Programming - C' after the field has been POSTed.

Edited by Daza
Link to comment
https://www.neowin.net/forum/topic/487215-phps-urlencode/
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I don't know if this is helpful or not, but just something I have an opinion on... Gaming PC builds where you've specced up the parts you want, built the system, colour matched things, etc... They may well be a labour of love, but on the 2nd hand market - nobody cares.  People are looking for deals, not your passion project
    • Firefox 139.0.4 fixes browser freezes, wallpaper bugs on Windows, and more by Taras Buria Mozilla is rolling out a new update for Firefox 139. Version 139.0.4 arrived today with four fixes and security patches. With today's release, Mozilla fixes freezes that occur when switching between apps or opening certain parts of the browser, issues with drop-down menus and triple-clicking text, and a bug with incorrect file names when setting a picture as the desktop background on Windows (the image would save as a BMP file with a blank name instead of Desktop Background.bmp) Here is the changelog: Security updates in Firefox 139.0.4 include two patches for vulnerabilities of high impact: CVE-2025-49709: Memory Corruption in canvas surfaces. Certain canvas operations could have led to memory corruption. CVE-2025-49710: Integer overflow in OrderedHashTable. An integer overflow was present in OrderedHashTable used by the JavaScript engine. As usual, you can update Firefox by heading to Menu > Help > About Firefox. Alternatively, grab the browser from the official website, Microsoft Store (if you are on Windows 10 and 11), or Neowin's Software page. For reference, release notes for version 139 and its subsequent bug-fixing update, 139.0.1, are available here and here. In other Firefox news, Mozilla recently announced the end of Pocket, Fakespot, and some other services. The company says its goal is to consolidate efforts and focus on Firefox development, its primary product.
    • msi.com/PC-Component/ThunderboltM4-8K
    • I relisted it (Google translate from Dutch):
  • Recent Achievements

    • Reacting Well
      Alan- earned a badge
      Reacting Well
    • Week One Done
      IAMFLUXX earned a badge
      Week One Done
    • One Month Later
      Æhund earned a badge
      One Month Later
    • One Month Later
      CoolRaoul earned a badge
      One Month Later
    • First Post
      Kurotama earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      494
    2. 2
      ATLien_0
      267
    3. 3
      +FloatingFatMan
      225
    4. 4
      +Edouard
      199
    5. 5
      snowy owl
      141
  • Tell a friend

    Love Neowin? Tell a friend!