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
#12

[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.
#13

[eluser]elaniobro[/eluser]
I fixed it.




Theme © iAndrew 2016 - Forum software by © MyBB