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:
upgrading to windows 2000 (2001)
Field Problem (2000)
suggestions needed for shipping cost solution (1999)
Forms & Tables (1998)
Running a store on BOTH http and https (1998)
FlushDatabase Suggestion (1998)
Bad URL reference? (1997)
Replace and Date (2002)
selecting multiple found items (1997)
Looking for a host (1997)
More WebMerch<->MacAuthoriz (1997)
More on the email templates (1997)
Problem with summary on date / inconsequent webcat behaviour (1998)
webcat serving multiple copies of same db from ram (2000)
Server capacity (2003)
Error (1997)
[WebDNA] Syntax Error? (2009)
Clean Code: Rules for inserting keyboard returns? (1997)
state? (2004)
Db crash in win98 (2000)