Click here to Skip to main content
12,399,799 members (50,820 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: PHP
Hi,

I have a problem with passing a plus sign (+) in a URL as an argument, it comes as a space instead of the plus sign. do anyone know how can i solve this issue.

note that I'm using a php code.

Thanks
Posted 21-Sep-12 21:11pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Look up URL encoding. Official PHP document here
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

See here[^].
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Plus in a url means space character. You can use "%2B" instead of a plus sign in urls.
An here is an online tool to encode or decode characters rapidly:
http://meyerweb.com/eric/tools/dencoder/[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 13 Feb 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100