Welcome Guest, Not a member yet? Register   Sign In
Form helper textarea load file
#5

(09-07-2015, 03:50 PM)gabrielpasv Wrote: Looks like it is file_get_contents and not get_file_contents

Now I don't get any error. But it also doesn't work

I am calling it directly, forgive my stupidity


               $data = array(
                   'name' => 'txt_area',
                   'id' => 'txt_area',
                   'value' => file_get_contents('resources/contract/contract.txt'),
                   'rows' => '18',
                   'cols' => '22',
                   'style' => 'width:50%',
               );

You should use htmlspecialchars to escape your external file contents.
See http://php.net/manual/en/function.htmlspecialchars.php
Reply


Messages In This Thread
Form helper textarea load file - by gabrielpasv - 09-07-2015, 12:56 PM
RE: Form helper textarea load file - by RobertSF - 09-07-2015, 02:03 PM
RE: Form helper textarea load file - by pdthinh - 09-07-2015, 05:33 PM
RE: Form helper textarea load file - by RobertSF - 09-07-2015, 05:55 PM
RE: Form helper textarea load file - by pdthinh - 09-08-2015, 11:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB