I am trying to submit a form and then check it and replace the new lines ' /n ' with a ' <br> ' tag.
The replace is the only part i am having the problems with.
I have tried :
/* 1. */ $textbox = eregi_replace("/n", "<br>", $textbox);
/* 2. */ $textbox = str_replace("/n", "<br>", $textbox);
but they dont seem to work any ideas??
It works if i do:
/* 1. */ $textbox = eregi_replace("one", "two", $textbox);
/* 2. */ $textbox = str_replace("one", "two", $textbox);