KEN - 2mediaZone wrote:
> I'm trying to find out how to get multiple values from text area box
> <textarea></textarea>.
> 
> Values are like this.
> 
> aaa\n
> bbb\n
> ccc\n
> ddd\n
> eee\n
> 
> I need to take "\n" from each value and put all the values to array.

Use explode() to split the value on the new lines. Then you have each
value in an array.

$ar = explode("\n",$_POST['text_value']);

(Why does this font make the backslash character look like a Y character
with a couple horizontal lines through it?)

-- 
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals - www.phparch.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to