Re: calculate user's age

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22744
interpreted = N
texte = Try this expected form.dob being formatted like a date [showif [math]{[form.dob]}-{00/00/0016}[/math]>0]You are over 16 you can submit[/showif]/martin>I'm trying to put together a form that was orginally based on the guestbook >sample. I want to add an age validation to the form -- only people that are >sixteen or older can successfully submit the form. I'm having a lot of >trouble with the syntax. Has anyone done anything similar? > > >This doesn't work. > >[showif [form.dob]<[math date]{[date]}-{00/00/0016}[/math]] > You are over 16, you can submit. >[/showif] > >Joe Wilkins >joe@mercury.benjerry.com Associated Messages, from the most recent to the oldest:

    
  1. Re: calculate user's age (Martin Bech 1999)
  2. calculate user's age (Joe Wilkins (by way of Kenneth Grome) 1999)
Try this expected form.dob being formatted like a date [showif [math]{[form.dob]}-{00/00/0016}[/math]>0]You are over 16 you can submit[/showif]/martin>I'm trying to put together a form that was orginally based on the guestbook >sample. I want to add an age validation to the form -- only people that are >sixteen or older can successfully submit the form. I'm having a lot of >trouble with the syntax. Has anyone done anything similar? > > >This doesn't work. > >[showif [form.dob]<[math date]{[date]}-{00/00/0016}[/math]] > You are over 16, you can submit. >[/showif] > >Joe Wilkins >joe@mercury.benjerry.com Martin Bech

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:

Multiple Newcarts (1996) Major Security Hole (1998) Creating folders and deleting files (1997) Database Program (1997) WebCat and image maps (1997) Using Applescript to process WebCatalog functions (1998) Cart problem (1999) RE: Javascripts (1998) Email notification to one of multiple vendors ? (1997) emailer (1997) problems with 2 tags (1997) Webcat causing crashes left and right! (1997) show all problem (1997) Multi-processor Mac info ... (1997) AuthorizeNet Declines (2005) Email within tmpl ? (1997) database size? (1997) emailer (1997) pull downs (1997) .. more on sliding discounts... (1997)