You are here: Re: urlencode and $_GET « PHP Programming Language « IT news, forums, messages
Re: urlencode and $_GET

Posted by meltedown on 11/17/05 17:52

Jerry Stuckle wrote:
> Can you post your code?
>
> I've encoded a '#' before with no problems at all.
>
Thanks for telling me that. Apparently, this not a common problem but
something wrong with my code. After you told me that, I did this simple
example.

http://reenie.org/test/test16.php?value=start%23end
After you hit the link, it says
$_GET is:Array ( [value] => start#end )
#end is not missing, so it works fine

Here's the code for the example
echo "\$_GET is:";
print_r($_GET);
echo "<br>\n";
$value="start#end";
echo "value is:$value<br>\n";
$value=urlencode($value);
echo "value after urlencode is:$value<br>\n";
echo "<a href='?value=".$value."'>test link</a>";

I'm still trying to figure out how to make an example of the original
problem.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация