RE: How to verify email address
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13195
interpreted = N
texte = Rob -(I'm putting your separate questions together here)>Is there any way to customize the error message returned when a>RequiredField is not entered.Sure - go into the 'ErrorMessages.db' file and put in whatever you like. Remember that this is meant to be a simple, easy way to notify users that required fields weren't filled out - you can always remove the requiredfields input from the form and use [showif] or [hideif] on the results page to check to see if values were filled out correctly. If you do it this way, you'll want to use the [purchase] tag somewhere on that template instead of a $purchase command in the URL, so you'll have a chance to hide the [purchase] tag if everything isn't filled out correctly.>Is there any way to check that the expmonth and expyear credit card date>fields are actually a sensible date in the future?Just use [showif] based on whatever criteria you like: if these fields are not in the correct form, you can show a message asking them to back up and re-enter the information; if they are in the correct form, you can accept the order normally.>Is there a way to verify the email and shiptoemail fields entered into>a cart are indeed in valid email address form? AOL users have an>unfortunate way of just putting down their screen name.Same thing; use something like [showif [email]^@] ... [/showif] to make sure [email] contains an @ symbol.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- RE: How to verify email address (Marc Eagle 1997)
|
Rob -(I'm putting your separate questions together here)>Is there any way to customize the error message returned when a>RequiredField is not entered.Sure - go into the 'ErrorMessages.db' file and put in whatever you like. Remember that this is meant to be a simple, easy way to notify users that required fields weren't filled out - you can always remove the requiredfields input from the form and use
[showif] or
[hideif] on the results page to check to see if values were filled out correctly. If you do it this way, you'll want to use the
[purchase] tag somewhere on that template instead of a $purchase command in the URL, so you'll have a chance to hide the
[purchase] tag if everything isn't filled out correctly.>Is there any way to check that the expmonth and expyear credit card date>fields are actually a sensible date in the future?Just use
[showif] based on whatever criteria you like: if these fields are not in the correct form, you can show a message asking them to back up and re-enter the information; if they are in the correct form, you can accept the order normally.>Is there a way to verify the email and shiptoemail fields entered into>a cart are indeed in valid email address form? AOL users have an>unfortunate way of just putting down their screen name.Same thing; use something like [showif [email]^@] ... [/showif] to make sure [email] contains an @ symbol.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
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:
Switching To NT (1999)
japanese characters (1997)
textarea input truncated at 255 chars (1999)
Draft Manual, Tutorial, and more (1997)
WebCat2 as a chat server? (1997)
What might be the cause for a hicup (2000)
[WebDNA] Encrypting INCLUDE files (2018)
[WebDNA] Order that emailer sends emails? (2009)
OT: Unix question (2003)
Help name our technology! (1997)
Major Security Hole (1998)
Moment of Thanks (1997)
Help! WebCat2 bug (1997)
WebCat2_Mac RETURNs in .db (1997)
Rhapsody? (1997)
Search/sort in URL Was: GuestBook example (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
http upload (2001)
WebCat Bulletin Board Solution ? (1998)
A question about security (1998)