Re: Verifying and adding new users
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15262
interpreted = N
texte = >I have a validation page for my new user form. I need to test for>invalid fields, and ask the client to resubmit if any are found.>>I want to include a specific invalid field header only if an invalid>field has been entered.>>If all fields are correct, I wish to have a new record entered.>>>Is there a way to test all the fields first before I do what's below,>using a showif with multiple conditions? (i.e. SHOIF>[firstname]=&[lastname]=] )>>[SHOWIF [firstname]=]> Sorry, the first name is empty
>[/SHOWIF]>[SHOWIF [lastname]=]> Sorry, the last name is empty
>[/SHOWIF]>[SHOWIF [company]=]> Sorry, the company is empty
>[/SHOWIF]>>>Or is there a way I could create a logical variable, initialized with>false, and have it made true if any of the above showif conditions are met?>Then this logical could be within its own Showif context and include the>specific invalid entry file.Yes ...[math]variable=0[/math][showif [field1]=][math]variable=variable+1[/math]Please go back and enter something into the [field1] field.[/showif][showif [field2]=][math]variable=variable+1[/math]Please go back and enter something into the [field2] field.[/showif][showif [field3]=][math]variable=variable+1[/math]Please go back and enter something into the [field3] field.[/showif][showif [math]variable[/math]=0][append db=XXX.db]field1=[field1]&field2=[field2]&field3=[field3][/append]Your new record has been created in the XXX.db database![/showif]Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/...
Associated Messages, from the most recent to the oldest:
>I have a validation page for my new user form. I need to test for>invalid fields, and ask the client to resubmit if any are found.>>I want to include a specific invalid field header only if an invalid>field has been entered.>>If all fields are correct, I wish to have a new record entered.>>>Is there a way to test all the fields first before I do what's below,>using a showif with multiple conditions? (i.e. SHOIF>[firstname]=&[lastname]=] )>>[SHOWIF [firstname]=]> Sorry, the first name is empty
>[/SHOWIF]>[SHOWIF [lastname]=]> Sorry, the last name is empty
>[/SHOWIF]>[SHOWIF [company]=]> Sorry, the company is empty
>[/SHOWIF]>>>Or is there a way I could create a logical variable, initialized with>false, and have it made true if any of the above showif conditions are met?>Then this logical could be within its own Showif context and include the>specific invalid entry file.Yes ...
[math]variable=0[/math][showif [field1]=]
[math]variable=variable+1[/math]Please go back and enter something into the [field1] field.[/showif][showif [field2]=]
[math]variable=variable+1[/math]Please go back and enter something into the [field2] field.[/showif][showif [field3]=]
[math]variable=variable+1[/math]Please go back and enter something into the [field3] field.[/showif][showif
[math]variable[/math]=0][append db=XXX.db]field1=[field1]&field2=[field2]&field3=[field3][/append]Your new record has been created in the XXX.db database![/showif]Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/...
Kenneth Grome
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:
[WebDNA] Mailing list failure !!! (2019)
Size limit for tmpl editor ? (1997)
WebCat2.0 [format thousands .0f] no go (1997)
orders being printed (1998)
date search not working when type=date specified (2007)
Image upload *CODE SAMPLE* (2000)
[WebDNA] Sorry WebDNA server not running - September 2019 Edition (2019)
Q on the best way to set up a security function so users can edit records (1999)
Re:2nd WebCatalog2 Feature Request (1996)
[OT] MS Security Flaw (2000)
User/pass with tcpconnect (2000)
Sorting by number (2001)
Hiding the URL(was Cart ID Duplication) (2001)
Separate server for jpg/gif files (1998)
Re:URGENT: WebCatalog 2.0 (1998)
Emailer tracking (1997)
imagemagick / iis / plesk - - - path solved (2006)
WC Database Format (1997)
[WebDNA] Imagemagick (2018)
quantity minimum problem (1997)