Re: [WebDNA] Basic Search - Fix

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100100
interpreted = N
texte = If you put [url][/url]around variables in showifs, etc, then ! won't interfere by being mistaken for "is not equal to". In addition to fixing other potential code breakers (&, ^, = etc.) >Just ran into this. > >I am checking to see if a texarea box is empty from a form. > >On the first page I set a variable: >[text]s1_q1=[/text] > >Here's the textarea: > > > >On the results page: > >[showif [ConvertChars >db=databases/customConvert.db][s1_q1][/ConvertChars]=][text]E_s1_q1=1[/text][/showif] > >I have am trying to check to see if [s1_q1] is empty. > >This works under all conditions, except when the first character in >text bow is "!". > >In which case, the result passes through and the error variable >E_s1_q1 is set to 1 and blows what I am trying to accomplish. > >I don't really want to check to see if the first character of the text >is an "!" though I could I guess. > >Any ideas. > >thanks. > >D. -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Basic Search - Fix ("David Bastedo" 2008)
  2. RE: [WebDNA] Basic Search - Fix ("Michael A. DeLorenzo" 2008)
  3. Re: [WebDNA] Basic Search - Fix ("David Bastedo" 2008)
  4. Re: [WebDNA] Basic Search - Fix (Donovan Brooke 2008)
  5. Re: [WebDNA] Basic Search - Fix (Terry Wilson 2008)
If you put [url][/url]around variables in showifs, etc, then ! won't interfere by being mistaken for "is not equal to". In addition to fixing other potential code breakers (&, ^, = etc.) >Just ran into this. > >I am checking to see if a texarea box is empty from a form. > >On the first page I set a variable: >[text]s1_q1=[/text] > >Here's the textarea: > > > >On the results page: > >[showif [ConvertChars >db=databases/customConvert.db][s1_q1][/ConvertChars]=][text]E_s1_q1=1[/text][/showif] > >I have am trying to check to see if [s1_q1] is empty. > >This works under all conditions, except when the first character in >text bow is "!". > >In which case, the result passes through and the error variable >E_s1_q1 is set to 1 and blows what I am trying to accomplish. > >I don't really want to check to see if the first character of the text >is an "!" though I could I guess. > >Any ideas. > >thanks. > >D. -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Terry Wilson

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:

Bug Report, maybe (1997) Webcatter Wanted (2000) [ShowNext] feature in 2.0 (1997) PCS Frames (1997) Secure server question (1997) Electronic Delivery (1997) What am I missing (1997) {Comparisons} in [showif] vs. [if] Bug? Inconsistency? (2002) PCS Frames (1997) searchable list archive (1997) [Webcat 2]Next (1997) Type 11 errors setting up WebCAt 2 (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) More on the email templates (1997) Updating fields from different platforms (1998) absolute paths for databases? (1997) Search wbrk (repost) (2001) Image maps/Webcat (1997) Webten + Webcat running smooth (1998) Multi file HTTP upload (2001)