I have a search form which contains only one text field with submit button.
If user searches with any text then we send results to the browser based on the search string.
If the search string contains % symbol then I got bad request status (400),
How do I resolve this issue?
Note : I have used path type URL which is provided by Yii framework
I will suggest you yo use encodeURI
var value=$("#searchbar").val();
var senddata=encodeURI("main.php?value="+value);
$.get(senddata,function(){
//write some code
})