Auto-formatting a text box..

Soldato
Joined
13 Feb 2004
Posts
2,656
Location
South Shields
I'm trying to display a large field of data in a text box but woud like it to be formatted upon the page loading.

For example..

In my database I have the following entry -

ID
1

Data
<li>xxxxx</li><br><li>xxxxx</li><br><li>xxxxx</li><br><li>xxxxx</li><br>

I would preferably like it to be formatted within a text box on the page to be displayed like so -

<li>xxxxx</li><br>
<li>xxxxx</li><br>
<li>xxxxx</li><br>
<li>xxxxx</li><br>

However it always displays as follows -

<li>xxxxx</li><br><li>xxxxx</li><br><li>xxxxx</li><br><li>xxxxx</li><br>

I am trying to create a menu for a restuarant but require a admin end where the data can be customised.. hence the <li> tags..
However I think it would look better if the text was preformatted.
Could this be done with a form of "input mask" or something similar?
Thanks for looking..
 
Got my head round it..

I just continued with the project and wrote the SQL update string..
I then applied this to the action property of the form and then entered the data as I wanted it to appear.

I then executed the SQL update string I had wrote earlier and it then saved the information.. along with the formatting.

Champion lol..
 
Back
Top Bottom