Welcome Guest, Not a member yet? Register   Sign In
repopulating a textarea
#11

[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


Messages In This Thread
repopulating a textarea - by El Forum - 05-04-2009, 12:20 PM
repopulating a textarea - by El Forum - 05-04-2009, 12:31 PM
repopulating a textarea - by El Forum - 05-04-2009, 01:39 PM
repopulating a textarea - by El Forum - 05-04-2009, 01:45 PM
repopulating a textarea - by El Forum - 05-04-2009, 01:53 PM
repopulating a textarea - by El Forum - 05-13-2009, 08:26 AM
repopulating a textarea - by El Forum - 05-13-2009, 08:29 AM
repopulating a textarea - by El Forum - 05-13-2009, 08:33 AM
repopulating a textarea - by El Forum - 05-13-2009, 08:51 AM
repopulating a textarea - by El Forum - 03-16-2010, 12:40 PM
repopulating a textarea - by El Forum - 03-16-2010, 01:08 PM
repopulating a textarea - by El Forum - 03-16-2010, 01:13 PM
repopulating a textarea - by El Forum - 03-16-2010, 01:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB