Praill
May 14th, 2007, 08:18 PM
Hello everyone.
I have a form element that uses a textarea and then submits the information to a php script that saves it in a mysql db.
The problem is blank space gets truncated.
Ex. a user types in:
testing
testing
testing
It gets displayed as: testing testing testing.
The php script saves the data in the table in the proper format, but when the query is read back with another php script into a variable and then echo'd out it truncates the blank space.
Im assuming the easiest way to fix this is to get the form to submit in html format (ex. testing<br>testing<br>testing) but Im unsure how to do this without getting the user to write in html format (which is not possible).
Any help would be appreciated. I notice these forums use "get" for the form method instead of "post". Does this have something to do with it?
I have a form element that uses a textarea and then submits the information to a php script that saves it in a mysql db.
The problem is blank space gets truncated.
Ex. a user types in:
testing
testing
testing
It gets displayed as: testing testing testing.
The php script saves the data in the table in the proper format, but when the query is read back with another php script into a variable and then echo'd out it truncates the blank space.
Im assuming the easiest way to fix this is to get the form to submit in html format (ex. testing<br>testing<br>testing) but Im unsure how to do this without getting the user to write in html format (which is not possible).
Any help would be appreciated. I notice these forums use "get" for the form method instead of "post". Does this have something to do with it?