I have set up a textarea on a form and I am handling all
input etc with php.
My problem is that when I process the textarea field then all the embedded spaces that are kept when you type in this textare box are lost and I just get a php string that
has all the spaces , line breaks etc missing ?
I am missing the point somewhere. How can I keep all of these attributes in the string ?
Hmmm, the spaces should not be missing (Unless you have consecutive spaces) as for the line breaks you need to run this function on the data before it is output to the browser:
$data = nl2br( $data );
can you post the code for the textarea. the problem sounds familiar and one thing i do is make sure i have ftp'ed my latest changes to the server. (This is a problem for me more often than not when a difficulty arises). then the next item i check is the mysql file to make sure it got there and what condition it is in. if there is a problem here, i check the update commands to upload. i often find some problem with a missing , (but that causes a parse error).
Running the data function sorted things out.