kastellu Posted May 23, 2006 Share Posted May 23, 2006 Hello,I have a problem with symbol &. When i would like to read from db some name of a company for example F&G , i dont get the result , probably becouse of this &. I tried to replace it with html symbol number & but ther is no succes! I am doing a selection by using QueryString ?company=F&GIf i delete & everything works fine, how could i solve this kind of problem?ThanksK Link to comment Share on other sites More sharing options...
snowboard01 Posted May 23, 2006 Share Posted May 23, 2006 ?company=F&Gjust put & after the & to be and remember the to end witha semicolon Link to comment Share on other sites More sharing options...
kastellu Posted May 23, 2006 Author Share Posted May 23, 2006 ?company=F&Gjust put & after the & to be and remember the to end witha semicolon<{POST_SNAPBACK}> Hello,Eaven if i put & between the letters , the problem stays the same, if i look at querystrin it stays like this ?company=F&G, but i don t get any data from selected company,...... any othe suggestions?Thanks,K Link to comment Share on other sites More sharing options...
pulpfiction Posted May 23, 2006 Share Posted May 23, 2006 Hi,Try using encodeURIComponent or escape in javascript. I think "&" will be %26, then you can use decodeURIComponent to get the stringAbout encodeURIComponent,http://xkr.us/articles/javascript/encode-compare/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now