ok, so say I have a text area, in which urls are pasted. I then want to store each of those items in an array. How can I go about accomplishing this.
What I want to accomplish is for someone to be able to paste some urls into the text area and then do something with them. In this case I would process each one by itself and evaluate it.
Thanks in advance.
textarea to array
Moderator: General Moderators
-
kingconnections
- Forum Contributor
- Posts: 137
- Joined: Thu Jul 14, 2005 4:28 pm
- potato
- Forum Contributor
- Posts: 192
- Joined: Tue Mar 16, 2004 8:30 am
- Location: my lovely trailer, next to the big tree
try this:
after this the $urls is an array with the urls
i hope i helped you with this
Code: Select all
$urls = $_POST['textarea'];
$urls = explode("/n", $urls);i hope i helped you with this