Page 1 of 1

Using form functions

Posted: Mon Jul 13, 2009 10:32 am
by mikatchu
Hi,

I don't understand how to use functions like CreateInputText() in the correct way.
I have the same problem as described here : http://forum.cmsmadesimple.org/index.ph ... 257.0.html

Example : there is an error in a form, so you display the form again, filled with the values given by the user. If some of these values include quote, double quote or > < in my search query, the result text starting by 'Search Results For...' is incorrect too.

- News : if I use the Front End Submission form, and I include an error in the form to display it again with my values, the error is present too (only in 'title' field, not in 'extra').

Tested in a fresh install and on the demo link.
Can someone explain me how to transform the value variable used with CreateInputText to display correctly ?
Thanks a lot

Re: Using form functions

Posted: Tue Jul 14, 2009 10:50 am
by mikatchu
Ok, it seems that you have to use the function cms_html_entity_decode() on variables you want to display in inputs.