![]() |
Passing Array to Views not Parse White Spaces - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Passing Array to Views not Parse White Spaces (/showthread.php?tid=29723) |
Passing Array to Views not Parse White Spaces - El Forum - 04-19-2010 [eluser]pmsfo[/eluser] Hi I am Passing Array Values to Views, but there is problem in the textbox redering the views. Whe I pass An Array to The views, if in the array there is i field with the values Field =>'example dot' on the text box of the view only shows 'example', it does not put the value 'example dot' it's like thar loses the all values from the with space to the right. in the view pass the values like this : <input type="text" name="txtParecer" id="txtParecer" disabled="disabled" value =<?= $dados['parecer']['Descricao'] ?>> Can you Help me Out Solving this Question. Best Regards Passing Array to Views not Parse White Spaces - El Forum - 04-19-2010 [eluser]danmontgomery[/eluser] value needs to be surrounded with quotes Code: value="<?= $dados[‘parecer’][‘Descricao’]; ?>" Passing Array to Views not Parse White Spaces - El Forum - 04-20-2010 [eluser]pmsfo[/eluser] It Worked . Thank You very much it was my mistake. I forgot the double quotes. http://www.newitperson.com/ |