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 Eagle StarNine Technologies http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. 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 Eagle StarNine Technologies http://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:

Help name our technology! I found it (1997) Here's how to kill a Butler Database. (1997) problem with WebDNA Command (2004) FEA REQ: One .hdr, multiple .db's (2003) problems with 2 tags (1997) Return records from another (1997) [Q] Novice's question (1997) [WebDNA] Linix v 6.2 Server (2013) Issue with plug-in Webcat, webstar 4.x, SSL and IE when using the backbuttom (2000) Re:Can this be done? (1997) select multiple (1997) form data submission gets truncated (1997) WebStar Secure on other machine (1997) WebCatalog/Mac 2.1b2 - PIXO (1997) shownext (1997) using showpage and showcart commands (1996) Solve the Problem, get the code! (2001) Re:quit command on NT (1997) Trouble with formula.db (1997) When do we get to request new features? (1999)