r-it Posted November 7, 2006 Share Posted November 7, 2006 I am using a get method for my site, the problem is that when i pass certain text, like C# Developer or something, and i get it, then when i display it, i only get the C, i know it has something to do with the GET because all other things work perfect, how can i rectify this. plz sum 1 help :( Link to comment https://forums.phpfreaks.com/topic/26435-get-not-including-hashes/ Share on other sites More sharing options...
trq Posted November 7, 2006 Share Posted November 7, 2006 # has special meening in a url. You might try using [url=http://php.net/url_encode]url_encode[/url] on the string when you create it, but Im not sure. Link to comment https://forums.phpfreaks.com/topic/26435-get-not-including-hashes/#findComment-120886 Share on other sites More sharing options...
alpine Posted November 7, 2006 Share Posted November 7, 2006 Yes - the # breaks the url so before the string is sendt to the url you can use [color=blue]urlencode($string)[/color] that transforms [color=blue]#[/color] to [color=blue]%23[/color]To get it back as # you use [color=blue]urldecode($_GET['key'])[/color] but remember that this can cause further problems in handeling it. Link to comment https://forums.phpfreaks.com/topic/26435-get-not-including-hashes/#findComment-120968 Share on other sites More sharing options...
r-it Posted November 8, 2006 Author Share Posted November 8, 2006 thank 4 the rapid response guyz, that dd the trick, can anyone recommend a framework i can use for php, i've had a look at cakephp and spry, but which is simpler to understand and better. I come from a vb.net background :-[ unfortunately Link to comment https://forums.phpfreaks.com/topic/26435-get-not-including-hashes/#findComment-121414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.