Click here to Skip to main content
12,950,090 members (69,711 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
Comments
Member 12896086 9-Dec-16 9:49am
   
What's the passwords
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
OriginalGriff 5,749
CHill60 3,380
Maciej Los 2,953
Jochen Arndt 1,935
ppolymorphe 1,820


Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 13 Feb 2014
Copyright © CodeProject, 1999-2017
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