Re: Problem with empty form-variables in [search]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16140
interpreted = N
texte = >But if I want to find a user with the following context > >[search db=datenbanken/mitspieler.db&&eqemaildatarq=[email]&eqpasswortdatarq=[Pass]&allreqd=T] > >the user does not need to enter his password to be found. If the password is wrong, the record won't be found. But if the user leaves the Pass-field blank, it is found (it should not!). >And if a user guesses a password of one another, there is a record to be found also.When a field is completely empty in a search, WebCatalog acts as though it were never there in the first place (this is for good reason; it helps with large search forms). You may need to use RequiredFields=email,password in your form, or perhaps use [ShowIf] to make sure they entered a value.P.S. I just read Rob's answer from earlier in the list, and his is better. But I'll post this anyway because it's a handy technique.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Problem with empty form-variables in [search] (Grant Hulbert 1998)
  2. Problem with empty form-variables in [search] (Matthias Precht 1998)
  3. Re: Problem with empty form-variables in [search] (Rob Marquardt 1998)
>But if I want to find a user with the following context > >[search db=datenbanken/mitspieler.db&&eqemaildatarq=[email]&eqpasswortdatarq=[Pass]&allreqd=T] > >the user does not need to enter his password to be found. If the password is wrong, the record won't be found. But if the user leaves the Pass-field blank, it is found (it should not!). >And if a user guesses a password of one another, there is a record to be found also.When a field is completely empty in a search, WebCatalog acts as though it were never there in the first place (this is for good reason; it helps with large search forms). You may need to use RequiredFields=email,password in your form, or perhaps use [showif] to make sure they entered a value.P.S. I just read Rob's answer from earlier in the list, and his is better. But I'll post this anyway because it's a handy technique.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Grant Hulbert

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:

Country & Ship-to address & other fields ? (1997) SKU (1997) [ShowNext] feature in 2.0 (1997) Alternating colors (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) searching for last file... WebCat solutions (1999) Quit revisited (1997) Developers in Washington State (2004) WebCat2b12 CGI Mac - [shownext] problem (1997) RE: is sku a REQUIRED field on NT (1997) WebCatalog 4.0.2rc1 and rc2 crash WebSTAR on quit (2001) Server slowing down. (1997) WebCat2 Append problem (B14Macacgi) (1997) WebCat2 beta 11 - new prefs ... (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) docs for WebCatalog2 (1997) Running 2 two WebCatalog.acgi's (1996) RE: Help name our technology! (1997) Server Creation - vendors (2005) MD5 Encryption (2003)