View Full Version : load array from textarea data (1 per line)

07-05-2007, 05:04 PM
How would I load an array into php from textarea POST data? First I would build a html page with the textarea and paste in the data. Then hit submit and it would POST to my php script. I assume I would have to assign the textarea POST to a variable. Then split each instance of "\n" into the next array index. Then I would have an array with each index as each line in the textarea. I don't know the code to do this. Can somebody please give me a start?

07-05-2007, 05:12 PM
Found the answer. :thumbsup: