RE: [PHP] scrolling text box
| From: | Jason Lotito | Date: | Thu, 29 Mar 2001 08:12:23 +0000 |
| Subject: | RE: [PHP] scrolling text box | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46004@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Randy Johnson [mailto:programmer@jennybug.com]
> Sent: Wednesday, March 28, 2001 8:49 PM
> Cc: php-general@lists.php.net
> Subject: [PHP] scrolling text box
>
>
> in php how would I ready line by line from a scrolling text box
>
>
> here are the values I would have in the scrolling text box
>
>
> a,1
> b,2
> c,3
>
>
> After the user hits the submit button on the form how can I get
> php to read
> the data line by line sort of like it was reading it line by line from a
> file.
>
>
> thanks
>
> randy
$array = explode("\n", $input);
The input being the stuff fromt he textarea (or the scrolling text box as
you call it)
$array would be an array of the information...$array[0] would be the first
line, $array[1] the second line, etc.
Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.