Re: Replacing a Word
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24404
interpreted = N
texte = Anup Setty wrote:> Hi,> Can anyone help me with this problem?> I need to write the data from a textarea into the database, while> I am doing that, I want to replace a word with an html
![]()
tag.> The text from the textarea has [image] and when I write in the> database I want it replaced by>> [image] =

>> thanks>> anup>> -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to
.>> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to This is tough, since Webcat has no true string manipulation tools. Assuming there is nomore than one occurance of [image] in any given field, this should work:I assume your database is named database.db, the field it is to be written to is calledfield, and your string is currently stored in a textvariable called[text]variable[/text][text show=f]appended=yes[/text][showif [text]variable[/text]^[raw][image][/raw]][append db=database.db]field=[middlestartafter=&endbefore=[raw][image][/raw]][text]variable[/text][/middle]
[middlestartafter=[raw][image][/raw]&endbefore=][text]variable[/text][/middle][/append][text show=f]appended=yes[/text][/showif][showif [text]appended[/text]=no] [append db=database.db]field=[text]variable[/text][/append][/showif]If a variable could contain more than one instance of [image], something much more complexwould be required.Contact me if you require this, and I'll have a look.Good luck,Derrick-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
Anup Setty wrote:> Hi,> Can anyone help me with this problem?> I need to write the data from a textarea into the database, while> I am doing that, I want to replace a word with an html
tag.> The text from the textarea has [image] and when I write in the> database I want it replaced by>> [image] =
>> thanks>> anup>> -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to .>> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to This is tough, since Webcat has no true string manipulation tools. Assuming there is nomore than one occurance of [image] in any given field, this should work:I assume your database is named database.db, the field it is to be written to is calledfield, and your string is currently stored in a textvariable called[text]variable[/text][text show=f]appended=yes[/text][showif [text]variable[/text]^[raw][image][/raw]][append db=database.db]field=[middlestartafter=&endbefore=[raw][image][/raw]][text]variable[/text][/middle]
[middlestartafter=[raw][image][/raw]&endbefore=][text]variable[/text][/middle][/append][text show=f]appended=yes[/text][/showif][showif [text]appended[/text]=no] [append db=database.db]field=[text]variable[/text][/append][/showif]If a variable could contain more than one instance of [image], something much more complexwould be required.Contact me if you require this, and I'll have a look.Good luck,Derrick-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Derrick Puckett
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Grant, please help me ... (1997)
Protect vs Authenicate (1997)
WebDNA Promo Sound Bite (2003)
RE: OK, here goes... (1997)
Help with update to 2.11 (1998)
Feature req. (2002)
[url] (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Zeroing out shipping costs (2000)
storeBuilder (2002)
[Sum] function? (1997)
[WebDNA] Developer Resources (2011)
system crashes, event log (1997)
b12 cannot limit records returned and more. (1997)
Drop Down Menus (2002)
Getting URL's entered manually (1997)
Command=Showcart? (2000)
WebCatalog can't find database (1997)
Extended [ConvertChars] (1997)
Webstar 1.3.1 PPC (1997)