Well...didn't know this would be sooo controversial! hahahaha.....seriously, I think you all missed the point of my question.
The script worked, as far as outputting what I wanted, however, if the file contained a % sign, it would fall over and give me the error I posted. Now to get back to my question....how do I escape html chars in atext file I want to output?
addslashes? htmlspecialchars? An example would really be appreciated!
Thanks,
Marcel.