RE: [WebDNA] Basic Search - Fix

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100103
interpreted = N
texte = I do error checking in form fields with a malicious chars database but to keep it simple you could wrap the whole showif in a hideif. As mentioned before make sure to use [url] around the input field. [text]s1_q1=[url]![/url][/text] [hideif [s1_q1]~[url]![/url]]your showif code here[/hideif] mike -----Original Message----- From: davidbmbastedo@gmail.com [mailto:davidbmbastedo@gmail.com] On Behalf Of David Bastedo Sent: Tuesday, July 01, 2008 11:27 AM To: talk@webdna.us Subject: Re: [WebDNA] Basic Search - Fix Just solved it. I should have been [url]ing before I checked the result. D. On Tue, Jul 1, 2008 at 11:15 AM, David Bastedo wrote: > 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. > -- David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com 416.603.2223 ext.1 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)
I do error checking in form fields with a malicious chars database but to keep it simple you could wrap the whole showif in a hideif. As mentioned before make sure to use [url] around the input field. [text]s1_q1=[url]![/url][/text] [hideif [s1_q1]~[url]![/url]]your showif code here[/hideif] mike -----Original Message----- From: davidbmbastedo@gmail.com [mailto:davidbmbastedo@gmail.com] On Behalf Of David Bastedo Sent: Tuesday, July 01, 2008 11:27 AM To: talk@webdna.us Subject: Re: [WebDNA] Basic Search - Fix Just solved it. I should have been [url]ing before I checked the result. D. On Tue, Jul 1, 2008 at 11:15 AM, David Bastedo wrote: > 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. > -- David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com 416.603.2223 ext.1 "Michael A. DeLorenzo"

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:

[url] (1997) String manipulation in Webcatalog (2001) form ENCTYPE confusion (2003) web delivery (1997) Webcat2, WebCommerce, Mod 10 etc. (1997) WebCatalog seems to choke on large (2meg) html files. (1998) Webstar 1.3.1 PPC (1997) Urgent help needed (2003) Help Wanted - Stowe, Vermont (1999) FWD: WebCatalog and .TMPL (1997) RE: Help name our technology! (1997) WebDNA Solutions ... sorry! (1997) textarea inputs and returns (1999) Add to a field (1998) Problem with empty form-variables in [search] (1998) Bug? (1997) [Fwd: F3 database munching] (1997) Bug or syntax error on my part? (1997) Security Question (1997) how do you and/or in a search? (1997)