Re: Verify entry into a text field
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62354
interpreted = N
texte = Lester wrote:> so with the [raw] ....> would I do this??> > [showif [url][pass][/url]=[raw][pass][/raw]]No, the [raw] test is in addition to any other test you are making. RTFM, but [raw] suppresses all WebDNA processing inside that context, so you can specifically test whether the form variable itself was submitted at all. The only time you will get '[pass]' unexpanded in your templates is if that form variable was not passed at all when the previous page was submitted.Hence, you should generally make two passes over your form data to make sure that:a) the variable was submitted at all using [raw]b) the contents of the variable meet your needsYou can combine both tests using [if] instead of [showif], but it might be just as easy to just make two passes (or assume if they didn't submit [user] then they are likely to have not submitted any other fields too).John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Lester wrote:> so with the [raw] ....> would I do this??> > [showif [url][pass][/url]=[raw][pass][/raw]]No, the [raw] test is in addition to any other test you are making. RTFM, but [raw] suppresses all WebDNA processing inside that context, so you can specifically test whether the form variable itself was submitted at all. The only time you will get '[pass]' unexpanded in your templates is if that form variable was not passed at all when the previous page was submitted.Hence, you should generally make two passes over your form data to make sure that:a) the variable was submitted at all using [raw]b) the contents of the variable meet your needsYou can combine both tests using [if] instead of [showif], but it might be just as easy to just make two passes (or assume if they didn't submit [user] then they are likely to have not submitted any other fields too).John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
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)
Still Learning (1997)
Server Freeze (1998)
[WebDNA] online.db deadlock: your current options ... (2011)
.html processing? (1998)
ShowNext (1997)
Emailer help....! (1997)
Anyone implement a x days ago function? (2007)
suffix mapping, use of cache, etc. (1997)
WebCatalog NT beta 18 now available (1997)
Um. silly question perhaps...but I don't know, so I'm askin'.. (2001)
[WebDNA] Ubuntu 10.4 & WebDNA 6.2 (2011)
Hiding a subsection of text (2002)
service stop and restart (1997)
Losing Variable Values/Data (2001)
WebCat & WebTen (1997)
[WebDNA] search by range of dates (2009)
SiteGaurd file Cache vs webcatalog cache (1997)
frames & carts (1997)
Request Time Out (1997)