By newbstah on
Hi There -
How do you make those wonderful multi-line textareas like in Taxonomy where you submit multiple terms, one per line? Does it get turned into an array?
Grateful for any help...
Hi There -
How do you make those wonderful multi-line textareas like in Taxonomy where you submit multiple terms, one per line? Does it get turned into an array?
Grateful for any help...
Comments
This is generally done by
This is generally done by exploding on '\n' in your submit handler.
So if you had a textarea form element defined as $form['stuff'], you could get what was entered (one per line) as an array in your submit handler by doing: $myarray = explode("\n", $form_values['stuff']);
Can't wait to try it!
Thanks for your quick reply. I appreciate it a lot. Can't wait to try it!