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:

Public beta 2 for WebCatalog 4.0 is now available. (2000) Opinion: [input] should be called [output] ... (1997) Emailer setup (1997) Nesting format tags (1997) RE:It just Does't add up!!! (1997) using listfiles to build a database? more (2000) Replacing a variable within a variable. (1998) Quit revisited (1997) can you take a look (2003) Webstar 1.3.1 PPC (1997) WC2.0 Memory Requirements (1997) First postarg not taking in $Commands (1997) RE: E-mailer error codes (1997) Modifying order output (1997) Where is the bug fix info for 4.0.1? (2000) RequiredFields template (1997) No luck with taxes (1997) Running 2 two WebCatalog.acgi's (1996) [isfile] ? (1997) Changing SubTotal (2003)