saving linebreaks and bold text in a db

T

Ted

I save text from a form made in FP2k. Is it possible to make and save
linebreaks <br> and bold text <b> when I save it as text-field or PM.field
into an access db.

/Ted
 
D

David Berry

If you're using the FrontPage Database Wizard you could do:

<%=Replace(FP_FieldVal(fp_rs,"FIELDNAME"),chr(13),"<br>")%>

Or if it's straight ASP Code you could do

<%=Replace(objRS("FIELDNAME"),chr(13),"<br>")%> (where objRS is your
recordset name)

Or you could use a function to do this for you. Ex:

<%
Function ParseText(strText)
strText=Replace(strText, Chr(13), "<br>")
ParseText=strText
End Function
%>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top