Re: REPLACE problem

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34060
interpreted = N
texte = >I have the following code that sorts works, but sorta doesn't. If I try to >use it to change the content of the field name [commonname], it replaces >the thext I enter with [__commonname]. I mean it literally places >[__commonname] into the databse. Not good.What is the value of [__commonname] at the time you are doing the replace? From your code, it looks like you have an HTML
which inputs some text into a form variable named __commonname, but then further down on the *same* page you are doing the replace.But your browser is not going to send the value for __commonname until the *next* page, searchdb.tpl, where that form variable will then be available. I think you need to put the [replace] code onto the page searchdb.tplTechnical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: REPLACE problem (John Butler 2000)
  2. Re: REPLACE problem (WebDNA Support 2000)
  3. Re: REPLACE problem (Glenn Busbin 2000)
  4. Re: REPLACE problem (Glenn Busbin 2000)
  5. Re: REPLACE problem (WebDNA Support 2000)
  6. REPLACE problem (Glenn Busbin 2000)
  7. Re: replace problem (Kenneth Grome 1999)
  8. Re: replace problem (listas 1999)
  9. Re: replace problem (Kenneth Grome 1999)
  10. Re: replace problem (listas 1999)
  11. Re: replace problem (Will Starck 1999)
  12. Re: replace problem (listas 1999)
  13. Re: replace problem (Will Starck 1999)
  14. replace problem (listas 1999)
>I have the following code that sorts works, but sorta doesn't. If I try to >use it to change the content of the field name [commonname], it replaces >the thext I enter with [__commonname]. I mean it literally places >[__commonname] into the databse. Not good.What is the value of [__commonname] at the time you are doing the replace? From your code, it looks like you have an HTML which inputs some text into a form variable named __commonname, but then further down on the *same* page you are doing the replace.But your browser is not going to send the value for __commonname until the *next* page, searchdb.tpl, where that form variable will then be available. I think you need to put the [replace] code onto the page searchdb.tplTechnical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ WebDNA Support

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:

Error Lob.db records error message not name (1997) Installing 4.5 under 10.2 (2002) convert characters (2003) Emailer (1997) invoice.tpl (1998) [ModDate] & [ModTime] ? (1997) WebCat2 several catalogs? (1997) Two stores, one server (1998) pipe delimited crconvert database (2002) Removing [showif] makes a big difference in speed (1997) Subject: Authenticating users without dialog box (1997) File dates in WebCatalog .tmpl/.inc (1997) Url encoded fun (1998) WebCatalog2 Feature Feedback (1996) Getting Emailer to send mail (1997) [WebDNA] [OT] WebDNA Wiki - need grammar check / suggestions (2009) [WebDNA] filter out the exclaimation point (2017) Redirect (2000) Shipcost lookup? (1997) Text data with spaces in them... (1997)