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:

WebCat2b13MacPlugin - [math][date][/math] problem (1997) [DOS] (1999) Netscape 3.01 can't see db in form (1997) Weird Problem (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) WebCat2b13MacPlugIn - [include] (1997) PROBLEM (1997) Sendmail Woes (2002) SKU lookup (1997) shownext problems (1998) How do I specify a & character in Grep? (2000) [WebDNA] TLS 1.2 and [tcpconnect] (2018) Problem with empty form-variables in [search] (1998) searching a range -still don't get it (2000) Re:Emailer and encryption (1997) Appending a field to itself (2000) Gil's in the lead (1999) OT: FTP problems (2003) RE: WebCat name recognition (was MacFinder -- a new WebDNAw (1998) WebCatb15 Mac CGI -- [purchase] (1997)