phpmash Posted August 21, 2007 Share Posted August 21, 2007 I have one page which shows some book category name which is hyperlinked. If click on it, I need to display all the books in that particular category. If the category name contains a "&" symbol which can not be accessed through $_REQUEST array. What can I do to solve this problem.. thanks in Advance Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/ Share on other sites More sharing options...
lemmin Posted August 21, 2007 Share Posted August 21, 2007 It should send the value with %26 for ampersand. You should be able to get it with the $_GET or $_POST arrays. Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/#findComment-330122 Share on other sites More sharing options...
phpmash Posted August 21, 2007 Author Share Posted August 21, 2007 The following will be my link How can I extract catname variable http://mysite.com/catsearch.php?screen=5&catname=Applied%20nutrition;%20Food%20&%20drink;%20Home%20economics%20&%20family%20living&total=38 Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/#findComment-330126 Share on other sites More sharing options...
lemmin Posted August 21, 2007 Share Posted August 21, 2007 How is this url getting created? Is a form tag making it or is something else? Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/#findComment-330128 Share on other sites More sharing options...
phpmash Posted August 21, 2007 Author Share Posted August 21, 2007 This contains pagination details & category name Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/#findComment-330133 Share on other sites More sharing options...
lemmin Posted August 21, 2007 Share Posted August 21, 2007 So the URL is not created by user submitted data? If that is the case, you just need to replace the "&" in your code that prints the link with "&". Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/#findComment-330140 Share on other sites More sharing options...
phpmash Posted August 21, 2007 Author Share Posted August 21, 2007 Thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/#findComment-330161 Share on other sites More sharing options...
lemmin Posted August 21, 2007 Share Posted August 21, 2007 Is that not implementable the way you are doing it? Quote Link to comment https://forums.phpfreaks.com/topic/66016-symbol-can-not-be-accessed-thru-_request/#findComment-330171 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.