View Full Version : <TEXTAREA> to Rows ?

07-10-2005, 10:06 PM
Hi guys,

What do you think the best way to get data from a <TEXTAREA> line by line is ?

Right now I do something like this:


...using '\r\n' as the delimiter. It works but maybe there is a better way ?


07-10-2005, 10:21 PM
I don't think there is another way, since the only delimeter is the newline it seems as good a way as any. I'm not sure "\r\n" is the best for portable code, though. I think (not 100% sure) that "\r\n" is windows, "\r" is mac and "\n" is *nix, so it might be worth throwing in some extra checking if you want portable code, but otherwise if it works it works :thumbsup: