Welcome Guest, Not a member yet? Register   Sign In
Query String Problem
#1

[eluser]cdbrkpnt[/eluser]
hi ,
i am working on Code Igniter,
today i had problem with configuring( or enabling ) querystring Functionality...
iam using an api which redirects to my page with an Querystring how can i use the parameters present in QueryString ...
i have tried enabling $config['Query_string']=True;
but,
it says page not found ...
http://example.com/search/tag/coffee
the link redirects to some other domain (Api service provider )
and again redirects to my page with
http://example.com/search/callback?param1=value1
(outputs as page not found ...)
now my question is how can i use this param1;
looking for any suggestions ....
#2

[eluser]TheFuzzy0ne[/eluser]
http://example.com/search/tag/coffee is not a query string. A query string should resemble the following: http://example.com/?&c=search&m=tag&arg=coffee
#3

[eluser]cdbrkpnt[/eluser]
thanks for your reply ...

how can i handle this kind of situation ....

i.e my url is in this format
http://example.com/search/tag/coffee

and the response from api service adds an other variable in this format

http://example.com/search/tag/coffee?param1=value1

is there a anyway to use it ...
#4

[eluser]xwero[/eluser]
change the uri_protocol from auto to another value except query_string. The auto protocol is greedy, if it sees a single key-value pair it assumes it's the controller.

To use it just use $_GET of CI $this->input->get().




Theme © iAndrew 2016 - Forum software by © MyBB