Hey everyone I am having a wierd issue that I think may be causing problems.
I have a form (one text area box) submiting data to a text file (int_update.txt).
In the code I change any line breaks /n to <br> so that it can simply be included somewhere all set with html etc.
The problem is in the int_update.txt file I am getting what looks like []<br> (pretent "[]" is a square and not two brackets. I don't know how to make that square)
Heres the code for writing to the file if its of any consequence:
# STRIP SLASHES BEFORE TEXT GOES TO FILE
$update = stripslashes($update);
# MAKE LINE BREAKS INTO HTML LINE BREAKS BEFOR MAKING TEXT FILE
$update = str_replace("\n","<br>",$update);
# CREATE FILE WITH UPDATE TEXT IN IT
$creTextFile = fopen("int_update.txt","w") or die("Could not open or create int_update.txt file");
fwrite($creTextFile,$update) or die("Could not write to int_update.txt file");
fclose($creTextFile)or die("Could not close the int_update.txt file");
Actually the only reason I ask is because when I print the success message it renders two <br>'s as one <br>. And I think maybe these squares are the reason? I can view source and see two <br>'s and still when its echoed it will be like tehre is only one in internet explorer.