[showif] problem

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22933
interpreted = N
texte = Here's the problem:I have a showif statement with the following: [showif [_body]=] [math show=f]ERROR=1[/math] [/showif]this comes from a page with a text input of Now, I just want to set the error if the body is blank. However, if someone enters an exclamation point (!) (or probably any other comparsion operator) it sets error to 1.I'm figuring that webcat is substituting the text into the showif statement first, then it looks at the comaprsion statement, e.g. if _body=Wow!This is cool then the showif statement after replacing [_body] would read [showif Wow!This is cool=] ..... [/showif] and since Wow does not equal This is cool= it sets error to be 1.I don't want this to happen. Anyone have a similar problem or a solution for it?Any help would be appreciated. Howard Wolosky ============Lead Programmer / Webmaster www.willitwork.com Will It Work presented by Lab 2K -The World's Largest Year 2000 Compliance Search Engine Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [showif] problem (Gil Poulsen 2009)
  2. [WebDNA] [showif] problem (Lawrence 2009)
  3. Re: [SHOWIF] PROBLEM (WebDNA Support 2000)
  4. [SHOWIF] PROBLEM (Natalie M. Rezonoff 2000)
  5. Re: [SHOWIF] PROBLEM (Nitai 2000)
  6. Re: [showif] problem (Kenneth Grome 1999)
  7. Re: [showif] problem (Gil Poulsen 1999)
  8. [showif] problem (Howard Wolosky 1999)
Here's the problem:I have a showif statement with the following: [showif [_body]=] [math show=f]ERROR=1[/math] [/showif]this comes from a page with a text input of Now, I just want to set the error if the body is blank. However, if someone enters an exclamation point (!) (or probably any other comparsion operator) it sets error to 1.I'm figuring that webcat is substituting the text into the showif statement first, then it looks at the comaprsion statement, e.g. if _body=Wow!This is cool then the showif statement after replacing [_body] would read [showif Wow!This is cool=] ..... [/showif] and since Wow does not equal This is cool= it sets error to be 1.I don't want this to happen. Anyone have a similar problem or a solution for it?Any help would be appreciated. Howard Wolosky ============Lead Programmer / Webmaster www.willitwork.com Will It Work presented by Lab 2K -The World's Largest Year 2000 Compliance Search Engine Howard Wolosky

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:

Great product and great job ! (1997) Help! WebCat2 bug (1997) More than one db with the same namn (was: WC2f3) (1997) Erotic Sites (1997) What is WebDNA (1997) [TCPConnect] questions/problems (2001) [Replace] really replaces? (2000) Webcat Crashing Error 1701 (2000) Prices coming up 0.00 (2001) Shopping carts and reloading pages (1997) db=xxx.db param have to be first? (2000) WebDNAMonitor (2002) WebCat b13 CGI -shownext- (1997) Progress !! WAS: Trouble with formula.db (1997) Country & Ship-to address & other fields ? (1997) [delete] problem (1997) Locking up with WebCatalog... (1997) [Webcat 2]Next (1997) [WebDNA] Bug (2016) [WebDNA] WebDNA and PHP cohabitating? (2009)