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:

if then else. BUG? (2003) Date Formats (1997) File upload woes (1998) PLEASE REMOVE MY EMAIL ADDRESS (1997) Credit Card Checksum (1997) [SubTotal] ??? (1998) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Bug Report, maybe (1997) WebCat2.0 [format thousands .0f] no go (1997) Formulas.db (2003) cc auth with [purchase] (1998) Running _every_ page through WebCat-error.html (1997) WebCatalog for guestbook ? (1997) 3 card formulas! (1999) WebCat2b15MacPlugin - showing [math] (1997) WebTen and WebCat (1997) Is WebCat 3.0 necessary for calculating shipping? (2000) database size? (1997) F3 crashing server (1997) [SHOWIF]s and empty arguments (1997)