jaywhy13
01-13-2005, 06:26 AM
Okay here is the problem I have.
Users enter data into a textbox... and I write it to my database. However when I retrieve the data from my database, the layout is completely changed. That is, where the user pressed enter and so on.... all the text is jumbled.
I have tried my luck with the "<pre>" tag but that gave me one everlasting line that streched out my page a few screen sizes to the right depending on how long the line was?
It was suggested to me that i need to forget the "<pre>" tag and use a server side method to store/display the code in such a way that it appears as it does in this forum. That is, no matter how much text we type... wherever we press enter it is conserved in the display of the post.....
Users enter data into a textbox... and I write it to my database. However when I retrieve the data from my database, the layout is completely changed. That is, where the user pressed enter and so on.... all the text is jumbled.
I have tried my luck with the "<pre>" tag but that gave me one everlasting line that streched out my page a few screen sizes to the right depending on how long the line was?
It was suggested to me that i need to forget the "<pre>" tag and use a server side method to store/display the code in such a way that it appears as it does in this forum. That is, no matter how much text we type... wherever we press enter it is conserved in the display of the post.....