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:

ISAPI WC6a and Windows 2003 Web Edition (2006) WebMerchant - MacAuthorize (1999) Categories (2000) New WebDNA Forum Solution (in development) (2003) Another webcatalog site!! (1997) quantity limit (1998) Navigator 4.0 & tables (1997) Custom Shipping Charges (1997) Corrupt Database Problem... (2000) Security Tip (1996) URGENT: WebCatalog Stalls (1998) WebCat2b15MacPlugin - showing [math] (1997) triggers (2003) [WriteFile] problems (1997) Re:no [search] with NT (1997) [showif [math (1999) Web*SSL and WebCatalog (1997) process SSI (1998) Re:One more time (1997) append=T problem (1998)