[Last Call] Learn how to a build a cloud-first strategyRegister Now


php url  dreamweaver

Posted on 2011-10-21
Medium Priority
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
ID: 37005533
You can do URL encoding in this case. Check the following for examples:

Author Comment

ID: 37005605
could you show me example?
LVL 111

Accepted Solution

Ray Paseur earned 2000 total points
ID: 37006025
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

830 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