Directory search script

This is where you share YOUR scripts with others

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Mon Feb 06, 2012 1:35 pm

you can do it with a textarea just fine.
you just have to separate it using the \n

for example.

$var = $_POST['textarea'];
$var = explode("\n",$var); // Now $var is an array of lines.
foreach($var as $k => $v) { // $v is the line you're looking for..
do your stuff here..

and done.
Pretty easy really.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests