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 tokeep it simple you could wrap the whole showif in a hideif. As mentionedbefore 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 BehalfOf David BastedoSent: Tuesday, July 01, 2008 11:27 AMTo: talk@webdna.usSubject: Re: [WebDNA] Basic Search - FixJust 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 BastedoTen Plus One Communications Inc.http://www.10plus1.com416.603.2223 ext.1
Associated Messages, from the most recent to the oldest:
I do error checking in form fields with a malicious chars database but tokeep it simple you could wrap the whole showif in a hideif. As mentionedbefore 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 BehalfOf David BastedoSent: Tuesday, July 01, 2008 11:27 AMTo: talk@webdna.usSubject: Re: [WebDNA] Basic Search - FixJust 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 BastedoTen Plus One Communications Inc.http://www.10plus1.com416.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)