ok
you have a form (text box lets say)
+-------------------------------+
This is a test
Next Line Down
Tabbed with next line down
+-------------------------------+
now when the user hits the submit button this will goto to either the same page or another page and insert that text into a database correct?
now what you can do is, let it insert then have another page (where everyone will view the text) conver the /n and /t
or
you can convert the /t and /n to something diffrent like :tabbed: :return:
etc..
so to replace this is hwo you do it
$textbox = eregi_replace("/n", "<br>", $textbox);
$textbox = eregi_replace("/t", "& nbsp;& nbsp;", $textbox);
now the
& nbsp;& nbsp;
you need to take out the space between the & and the n
&n
now to convert the text back so it looks right in a text box this is how you do it
$textbox = eregi_replace("<br>", "/n", $textbox);
$textbox = eregi_replace("& nbsp;& nbsp;", "/t", $textbox);