saving linebreaks and bold text in a db

  • Thread starter Thread starter Ted
  • Start date Start date
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
 
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
%>
 
Back
Top