Forums

This topic is locked

How to format text in forms

Posted 12 Mar 2004 18:44:38
1
has voted
12 Mar 2004 18:44:38 Michal Dusik posted:
Hi!
I have a simple form and users may insert data through it. Ususally they use carriage returns to set paragraphs when filling the form, but when I try to visualize a field, its just a long line withouth <br> (paragraphs). I'm not sure if I set the bad field type (its a blob) or I should do something when visualizing the field (some sort of format?). How can I make the text appear exactly as they typed it?

PLEASE HELP!

Thanx a lot

Miky

Replies

Replied 12 Mar 2004 18:51:39
12 Mar 2004 18:51:39 Dave Thomas replied:
you can use

<font color=red><pre id=code><font face=courier size=2 id=code>&lt;%=Replace(RecordsetName.Fields.Item("FieldName".Value, VbCrLf, "&lt;br&gt;"%&gt;</font id=code></pre id=code></font id=red>

and just replace the Recordsetname and Fieldname with your own.

there is also an extension to do this quickly for you, dont know if its still available but heres the link anyway.

www.dmxzone.com/showDetail.asp?TypeId=3&NewsId=1931

note; only works on ASP/VBScript



Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com

Edited by - UltraDav on 12 Mar 2004 18:53:00
Replied 12 Mar 2004 18:56:54
12 Mar 2004 18:56:54 Michal Dusik replied:
Is there a PHP version?
Thanx

Miky

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
you can use

<font color=red><pre id=code><font face=courier size=2 id=code>&lt;%=Replace(RecordsetName.Fields.Item("FieldName".Value, VbCrLf, "&lt;br&gt;"%&gt;</font id=code></pre id=code></font id=red>

and just replace the Recordsetname and Fieldname with your own.

there is also an extension to do this quickly for you, dont know if its still available but heres the link anyway.

www.dmxzone.com/showDetail.asp?TypeId=3&NewsId=1931

note; only works on ASP/VBScript



Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com

Edited by - UltraDav on 12 Mar 2004 18:53:00
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic