php url  dreamweaver

Posted on 2011-10-21
Last Modified: 2012-05-12
using dreamweaver I have a recordset with has a space in it.

I need some code to tell the record set to search with space but the url is displaying %20 as the space
Question by:beridius
    LVL 22

    Expert Comment

    by:Om Prakash
    You can do URL encoding in this case. Check the following for examples:
    LVL 2

    Author Comment

    could you show me example?
    LVL 107

    Accepted Solution

    Make a Google search for RFC 3986.  You need to understand that if you're processing external data of any sort.

    %20 is the result of rawurlencode(' ')

    If you use urlencode(' ') instead of rawurlencode(), you will find a plus sign instead of %20.

    You can change the %20 back into a space with urldecode() or with str_replace().  We could not speculate about which function to use unless we had your particular data available, but one or the other of those functions will let you get the space back.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    As this topic comes over and over again in different forms, I've finally decided to write a short (yea, right...) article / tutorial about pagination with PHP with MySQL database. There are dozens of these kind of tutorials, I know - I wanted to mak…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now