Directory search script

This is where you share YOUR scripts with others

Moderators: macek, egami, gesf

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

Re: Directory search script

Post by egami » 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

Who is online

Users browsing this forum: No registered users and 1 guest