transfer list in textarea to comma delimited string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
I have one textarea field in a registration form where visitor enters
keywords. even there is a not next to the field "please enter keywords
as comma delimited string", they enter as  a list, below each other.

I tried to convert the list into comma delimited string with several
solutions but non of them works:
$keywords = eregi_replace('\n', '.', $keywords);
$keywords = eregi_replace('\r', '.', $keywords);
$keywords = eregi_replace('\n\r', '.', $keywords);
$keywords = eregi_replace('<br>', '.', $keywords);

any help here?

thanks

-afan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux