> -----Original Message-----
> From: Randy Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 28, 2001 8:49 PM
> Cc: [EMAIL PROTECTED]
> 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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to