Welcome Guest, Not a member yet? Register   Sign In
Problem in permitted URI
#1

[eluser]Tamilmani[/eluser]
Hi,

Anyone tell me i need to include the '?' symbol in request url. i changed in config file
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

to

$config['permitted_uri_chars'] = 'a-z 0-9~%.:?_\-';


But it is not working .

I am using ajax searching like
ex : how r u ?
but it should display how r u only '?' this symbol not getting in requested string.

Please anyone give the solution for this problem
#2

[eluser]Thorpe Obazee[/eluser]
You'll need to $config['enable_query_strings'] = TRUE; in the application/config.php file
#3

[eluser]Tamilmani[/eluser]
Hi dude,

I have changed $config[‘enable_query_strings’] = FALSE; into $config[‘enable_query_strings’] = TRUE;

but still not working???

Anything else???
#4

[eluser]Thorpe Obazee[/eluser]
I think I misunderstood your question.

try this
Code:
$config[‘permitted_uri_chars’] = ‘a-z 0-9~%.:_\- \?’;
#5

[eluser]Tamilmani[/eluser]
I used that also but i didn't get any result....
#6

[eluser]Thorpe Obazee[/eluser]
Hmm.. weird, I've tried that and it worked on a test of mine.

It could help if you show us more information on your code.

edit: maybe not.
#7

[eluser]Tamilmani[/eluser]
Actually this is requesting words.

Like ex: hello how r u ?

This is will be stored into database bu using ajax . I am using onkeyup function to get the all words.

In that string i didn't get the question mark symbol.

Thats what i am asking. Here i am not using not much of code , just simple ajax code.
#8

[eluser]Thorpe Obazee[/eluser]
Code:
$config['uri_protocol']    = "REQUEST_URI";

try this in the config file.

tried and tested Smile
#9

[eluser]Tamilmani[/eluser]
thanks dude ....
it is working good....Once again i say thanks to you
#10

[eluser]Thorpe Obazee[/eluser]
my pleasure. just giving back.




Theme © iAndrew 2016 - Forum software by © MyBB