...

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



dreamingdigital
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?

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

http://www.webdeveloper.com/forum/showpost.php?p=765002&postcount=4



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum