0

hello i am working on codeigniter an iam getting problem that when anyone go to edit name that was entered as "XYZ ABC" means providing space between them then we get "%20" as printed between them when it is printed on textfield to be edited

Nir Alfasi
  • 53,191
  • 11
  • 86
  • 129

2 Answers2

0

Sounds like the user input get url_encoded somwhere, as %20 is an urlencoded whitespace. Try decoding it before displaying/writing to DB:

http://www.php.net/manual/de/function.urldecode.php

gherkins
  • 14,603
  • 6
  • 44
  • 70
0

try:

echo urldecode($str);

read more

Nir Alfasi
  • 53,191
  • 11
  • 86
  • 129