• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
repopulating a textarea

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

<textarea name="my_field">This is some data</textarea>
<?php echo $this->input->post('my_field'); // This is some data

I tried that. I have another thread I started:


But doing what you said is throwing me an error.

I fixed it.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.