Using form functions

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
mikatchu
New Member
New Member
Posts: 9
Joined: Sun Dec 28, 2008 10:16 am

Using form functions

Post 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
mikatchu
New Member
New Member
Posts: 9
Joined: Sun Dec 28, 2008 10:16 am

Re: Using form functions

Post by mikatchu »

Ok, it seems that you have to use the function cms_html_entity_decode() on variables you want to display in inputs.
Post Reply

Return to “Developers Discussion”