At 08:39 AM 10/5/2001, you wrote: >* When the data is retrieved for the admin form, strip out the HTML >commands <BR> and <P> and replace them with actual carriage returns/double >carriage returns. Leave all other HTML tags in place (ie, <B>, etc). > >* When the admin form is submitted, add these values back in before >storing the new information in the database, so the page is formatted >nicely when viewed on the normal website.
Going from formatted replace the <BR> with a single newline, and <P> with a double newline, going in reverse replace the double newline with a <P> then a single newline with a <BR>, newline should probably be a CR/LF combination rather than just CR. something like .... Replace(Replace(FormattedText, "<BR>", "#CHR(10)##CHR(13)#", "ALL"), "<P>", "#CHR(10)##CHR(13)##CHR(10)##CHR(13)#", "ALL") Replace(Replace(UnformattedText, "#CHR(10)##CHR(13)##CHR(10)##CHR(13)#", "<P>", "ALL"), "#CHR(10)##CHR(13)#", "<BR>", "ALL") ---------- James Sleeman Innovative Media Ltd Phone: (03) 377 6262 http://www.websolutions.co.nz/ CAUTION: The information contained in this email message is confidential and may be legally privileged. If the reader of this message is not the intended recipient you are notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately and destroy the original message and any attachments. Views expressed in this communication may not be those of Innovative Media Ltd. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

