This problem has been driving me up the wall for 1 week now.
I have an input form that puts the data into a MySQL database. There is another form that allows the user to bring up that specific information to edit. The problem that I am having is with <textarea> input.
Whenever the information is retrieved for edit, somewhere additional non-printing characters are added to the end of the text line (they look like tabs). I have tried the following code both when writing the data to the database and also when retrieving it for output onto the screen:
$comments=stripslashes($comments);
$comments=ereg_replace("	", "", $comments);
$comments=trim($comments);
What is going on here. Any and ALL suggestions are welcome. By the way, I have only been using Apache, MySQL and PHP4 for 2 weeks, but am loving every minute. It also shows the strength of PHP when someone with no previous experience or knowledge is able to build some crude but highly functional applications in less than two weeks.