"thehuby" <ri*******@e-connected.com> wrote in message news:<11*********************@f14g2000cwb.googlegr oups.com>...
You could also try using myStr = nl2br(myStr) - this is PHP's built in
function for doing what you are describing.
I am using the textarea to enter the data from the form into the
database. In the textarea, the data was entered as (new line and
spaces)
Welcome
My web site
Hello everyone,
In this site you will find some php code.
The data was saved in the database field exactly the same.
Now in the edit form, the data was again displayed exactly the same in
the textarea exactly the same. But when the data was echoed in the php
code, the data was displyed without the spaces that was inserted. The
variabled that was echoed in both textare (at edit time) and at
displaying come from the database.
Welcome
My web site
Hello everyone,
In this site you will find some php code.
Now can anyone help with the problem, so that spaces are also
displayed.