I am working on cataloging items for a pharmaceutical company.
Basically, there are categories and products associated with each category.
I have worked out those nicely.
The problem I am having now is on product description.
The descriiptions are done in a bulleted formatlike:
. Mighty red dog
. The red nosed rendeer
. Beanies
etc..
My big worry is how to input these descriptions and have them appear in the format above.
I have tried entering them and using split function to split them at every ocurrance of . (dot).
That didn't work.
Then I tried coming up with this code in such that once descriptions for a product are entered, they appear in a bulleted list.
I am not getting any errors but the values being generated are not in bulleted form.
Can someone please help.
Here is the code I am using for creating bullted list.
Maybe this code should be in the insert page, not on the form input page.
strUserText = rs("catdescription")
strUserText = Replace(strUserText, VbCrLf, "<li>")
Thanks in advance
Basically, there are categories and products associated with each category.
I have worked out those nicely.
The problem I am having now is on product description.
The descriiptions are done in a bulleted formatlike:
. Mighty red dog
. The red nosed rendeer
. Beanies
etc..
My big worry is how to input these descriptions and have them appear in the format above.
I have tried entering them and using split function to split them at every ocurrance of . (dot).
That didn't work.
Then I tried coming up with this code in such that once descriptions for a product are entered, they appear in a bulleted list.
I am not getting any errors but the values being generated are not in bulleted form.
Can someone please help.
Here is the code I am using for creating bullted list.
Maybe this code should be in the insert page, not on the form input page.
strUserText = rs("catdescription")
strUserText = Replace(strUserText, VbCrLf, "<li>")
Code:
Then the code is invoked here:
[code]
<tr>
<td>Product Description:</td>
<td> <textarea name="pdescription" cols="30" rows="5" value="<%=strUserText%>"></textarea>
</tr>
Thanks in advance