Welcome Guest, Not a member yet? Register   Sign In
input stream encoding automatically
#1

[eluser]Unknown[/eluser]
I have a simple form where I collect a string and turn around and query the database on that string. It works if the input field is a single word. If it is multiple words, it is failing the get. The reason is because the post is adding to the returned string. The ONLY way I can make the get pass is by urldecoding before issuing the get.

My uri_protocol is set to auto
I am not using form_validation on this form
XSS is set to FALSE

I would appreciate others insight into this problem. Thanks for your help!

#2

[eluser]Samus[/eluser]
[quote author="velzyboard" date="1333974275"]I have a simple form where I collect a string and turn around and query the database on that string. It works if the input field is a single word. If it is multiple words, it is failing the get. The reason is because the post is adding to the returned string. The ONLY way I can make the get pass is by urldecoding before issuing the get.

My uri_protocol is set to auto
I am not using form_validation on this form
XSS is set to FALSE

I would appreciate others insight into this problem. Thanks for your help!

[/quote]
Are you using the form helper? If so from the user guide:

Quote:Note: If you use any of the form helper functions listed in this page the form values will be prepped automatically, so there is no need to call this function. Use it only if you are creating your own form elements.

That might not be the problem, but try use normal html and see what happens




Theme © iAndrew 2016 - Forum software by © MyBB