repopulating a textarea - 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: repopulating a textarea (/showthread.php?tid=18371) Pages:
1
2
|
repopulating a textarea - El Forum - 03-16-2010 [eluser]danmontgomery[/eluser] [quote author="elaniobro" date="1268782825"]How would you post the textarea of your form back to the controller?[/quote] Textarea behaves exactly the same as any form field, except that the data isn't in a value attribute, but between the opening and closing tags. Code: <textarea name="my_field">This is some data</textarea> Code: <?php echo $this->input->post('my_field'); // This is some data repopulating a textarea - El Forum - 03-16-2010 [eluser]elaniobro[/eluser] I tried that. I have another thread I started: http://ellislab.com/forums/viewthread/149567/ But doing what you said is throwing me an error. repopulating a textarea - El Forum - 03-16-2010 [eluser]elaniobro[/eluser] I fixed it. |