Re: Read values from Text Area Box

From: Date: Sun, 27 Jul 2003 13:46:59 +0000
Subject: Re: Read values from Text Area Box
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157068@lists.php.net to get a copy of this message
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

« previous php.general (#157068) next »