Accessing # character in URL through $_GET
<p>Ok, this should be a simple one for you guys. I am passing data through the URL and then accessing it using php $_GET[] function. If the URL has a '#' somewhere inside then the GET request seem to truncate the string. Eg:</p>

<blockquote>
  <p><a href="http://xxx.com/yyy.php?version=0.88&amp;value=ART:C_Sharp_%28programming_language%29@Multi-paradigm_programming_language@Influenced" rel="nofollow">http://xxx.com/yyy.php?version=0.88&amp;value=ART:C_Sharp_%28programming_language%29@Multi-paradigm_programming_language@Influenced</a>
  D, F#, Java 5, Nemerle, Vala Platform
  Common Language Infrastructure License
  CLR Proprietary Usual file extensions
  .cs Website C Sharp Programming at
  Wikibooks C# (pronounced /ˈsiː ˈʃɑrp/
  see sharp) is a multi-paradigm
  programming language encompassing
  imperative, declarative, functional,
  generic, object-oriented
  (class-based), and component-oriented
  programming disciplines.@10902</p>
</blockquote>

<p><code>$_GET['value']</code> returns:</p>

<blockquote>
  <p>ART:C_Sharp_(programming_language)@Multi-paradigm_programming_language@Influenced D, F</p>
</blockquote>

<p>Is there a way to avoid this? Should I strip the values posted to the url of all the #'s.</p>

<p>Please reply. Sorry if this is a very trivial problem.</p>

<p><strong>EDIT:</strong> The url location is accessed from the client side javascript code using XMLHttpRequest()</p>

<p><strong>Second EDIT:</strong> encoded string from javascript functionality encodeURIComponent():</p>

<blockquote>
  <p>ART%3AC_Sharp_%2528programming_language%2529%40Multi-paradigm_programming_language%40Influenced%20D%2C%20F%23%2C%20Java%205%2C%20Nemerle%2C%20Vala%20Platform%20Common%20Language%20Infrastructure%20License%20CLR%20Proprietary%20Usual%20file%20extensions%20.cs%20Website%20C%20Sharp%20Programming%20at%20Wikibooks%20C%23%20(pronounced%20%2F%CB%88si%CB%90%20%CB%88%CA%83%C9%91rp%2F%20see%20sharp)%20is%20a%20multi-paradigm%20programming%20language%20encompassing%20imperative%2C%20declarative%2C%20functional%2C%20generic%2C%20object-oriented%20(class-based)%2C%20and%20component-oriented%20programming%20disciplines.%8681</p>
</blockquote>

<p>decoded output logged by 'yyy.php':</p>

<blockquote>
  <p>ART:C_Sharp_%28programming_language%29@Multi-paradigm_programming_language@Influenced
  D, F#, Java 5, Nemerle, Vala Platform
  Common Language Infrastructure License
  CLR Proprietary Usual file extensions
  .cs Website C Sharp Programming at
  Wikibooks C# (pronounced /ËˆsiË
  ËˆÊƒÉ‘rp/ see sharp) is a
  multi-paradigm programming language
  encompassing imperative, declarative,
  functional, generic, object-oriented
  (class-based), and component-oriented
  programming disciplines.@8681</p>
</blockquote>

<p><strong>Logged output without using encodeURIComponent() and what should be the expected result:</strong></p>

<blockquote>
  <p>ART:C_Sharp_(programming_language)@Multi-paradigm_programming_language@Influenced
  D, F#, Java 5, Nemerle, Vala Platform
  Common Language Infrastructure License
  CLR Proprietary Usual file extensions
  .cs Website C Sharp Programming at
  Wikibooks C# (pronounced /ˈsiː ˈʃɑrp/
  see sharp) is a multi-paradigm
  programming language encompassing
  imperative, declarative, functional,
  generic, object-oriented
  (class-based), and component-oriented
  programming disciplines.@8681</p>
</blockquote>

<p>Thanks,</p>
