• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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