Re: Replacing a Word
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24405
interpreted = N
texte = Why couldn't you just do:[append]field1=

[/appened]You would need to fix that up but its the basic idea and I'm running out thedoor.Jesse Williams Proudman - NineWire Production http://www.ninewire.com <-> Jesse@ninewire.com Innovative and Creative Web Design and Hosting> -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Derrick Puckett> Sent: Monday, November 15, 1999 7:36 AM> To: WebCatalog Talk> Subject: Re: Replacing a Word>>>>> 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 no> more 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 called> field, 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=[middle> startafter=&endbefore=[raw][image][/raw]][text]variable[/text][/mi> ddle]
src=images/image.gif>[middle> startafter=[raw][image][/raw]&endbefore=][text]variable[/text][/mi> ddle][/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 complex> would 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> -------------------------------------------------------------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:
Why couldn't you just do:[append]field1=
[/appened]You would need to fix that up but its the basic idea and I'm running out thedoor.Jesse Williams Proudman - NineWire Production http://www.ninewire.com <-> Jesse@ninewire.com Innovative and Creative Web Design and Hosting> -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Derrick Puckett> Sent: Monday, November 15, 1999 7:36 AM> To: WebCatalog Talk> Subject: Re: Replacing a Word>>>>> 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 no> more 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 called> field, 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=[middle> startafter=&endbefore=[raw][image][/raw]][text]variable[/text][/mi> ddle]
src=images/image.gif>[middle> startafter=[raw][image][/raw]&endbefore=][text]variable[/text][/mi> ddle][/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 complex> would 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> -------------------------------------------------------------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
Jesse Williams Proudman
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:
Multiple results (2001)
Multiple fields on 1 input (1997)
X etc.... (1999)
New Command prefs ... (1997)
Keep away (1997)
Installation webCatalog (French speakers please help) (1998)
Remote delivery (1998)
Using tags to create a file name (2000)
Weird Problem (1997)
Include a big block of text (1997)
Shopping problems with 2.1b3 acgi (1997)
Email Spam a bit of Hell (2004)
webcat NT (1998)
founditem align (1998)
synching databases on multiple servers (1997)
WebCat2 as a chat server? (1997)
Old Style vs XML Syntax (2003)
HTTP header line is too long? (1997)
Download (1999)
Database alias & long filename question (2001)