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:

Redirect me home please? (2000) Locking up with WebCatalog... (1997) Protect (1997) Appendfile memory usage (redux) (2003) Replace Statement (1997) Editing Users.db (1997) Pithy questions on webcommerce & siteedit (1997) BUG REPORT: numeric ge, le, gr & ls comparisons don't work ... (1999) Lookup Notfound (1998) [WebDNA] WebDNA restart script (2015) Locking up with WebCatalog... (1997) multi-paragraph fields (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Passing WebCat data to SSL server (1997) Email within tmpl ? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Sorry I didn't pay attention-but ??? (1997) Images in WebCat (2000) [WebDNA] email stops sending (2008) Exclamation point (1997)