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 ofNow, I just want to set the error if the body is blank. However, ifsomeone enters an exclamation point (!) (or probably any other comparsionoperator) it sets error to 1.I'm figuring that webcat is substituting the text into the showif statementfirst, then it looks at the comaprsion statement, e.g. if _body=Wow!This is coolthen 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 solutionfor it?Any help would be appreciated.Howard Wolosky============Lead Programmer / Webmaster www.willitwork.comWill It Work presented by Lab 2K -The World's Largest Year 2000 Compliance Search Engine
Associated Messages, from the most recent to the oldest:
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 ofNow, I just want to set the error if the body is blank. However, ifsomeone enters an exclamation point (!) (or probably any other comparsionoperator) it sets error to 1.I'm figuring that webcat is substituting the text into the showif statementfirst, then it looks at the comaprsion statement, e.g. if _body=Wow!This is coolthen 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 solutionfor it?Any help would be appreciated.Howard Wolosky============Lead Programmer / Webmaster www.willitwork.comWill It Work presented by Lab 2K -The World's Largest Year 2000 Compliance Search Engine
Howard Wolosky
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...