I have tried everything. scripcslahes, eregi_replace, nothing works. I still have newlines in my script.
what's the problem?
try using trim($str)
http://www.php.net/manual/en/function.trim.php
Dirk
If you are trying to remove multiple newlines from the form values, and it does not work, this is because "\n" is not the symbol to look for. Try to change it to "\r\n".
Shouldn't stripcslashes work on this though?
Stripslashes do what they supposed to do - "strip slashes". And only.