Welcome Guest, Not a member yet? Register   Sign In
problem with single quote in input field
#6

(06-16-2017, 11:27 PM)Wouter60 Wrote: It's the combination of form_input and set_value. Both functions "escape" the value.
You can turn off html escaping in set_value, by adding a third parameter:
PHP Code:
set_value('mo',$projets['mo'],FALSE
See if that does the trick.
Otherwise, build the input field with plain html. Then it's possible to use set_value for repopulating the field after form validation.

PHP Code:
<input type="text" name="test" value="<?= set_value('test','default_value');?>" size=64 maxlength=255 /> 

Hello, it's working by adding the false parameter, thank's for all.
Reply


Messages In This Thread
RE: problem with single quote in input field (resolved) - by nunenthal - 06-17-2017, 01:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB