Yeah, that's kind of where I got stuck in my previous answer.
The only way I can think of is kind of kludgy, but it might work. You'd have to set a max limit on the number of search items (like 10). Then create 10 hidden field element, like search_1 through search_10. Set the default on each one to some random string that won't ever appear in the data you are searching, like no_data.
Add a PHP form plugin, running onBeforeProcess. In the PHP box, do this:
PHP:
$search_num = 1;
foreach (explode('\n', $formModel->_formData['___searchqform']) as $search_term)
{
$search_field = '___search_' . $search_num;
$formModel->updateFormData($search_field, $search_term, true, true);
$search_num++;
if ($search_num > 10)
{
break;
}
}
This should bust up your textarea and put each line into one of the ___search_X elements.
Then in your redirect, instead of using {___searchqform}, put 10 search terms, for ___search_1 through ___search_10.
This will end up with any 'unused' ones searching for your non-existent default text, but ... should work.
Like I said, kind of kludgy, but should work.
-- hugh