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:

archives down (2001) Time for a hard questions. (1997) WC2f3 (1997) Bulk Register (2004) Setting up the server (1997) Resetting a Formvariable (2000) Redirect frame targets (1998) WC Database Format (1997) Searching multiple fields (1997) WebCatalog2 Feature Feedback (1996) Web Merchant process after credit card clears (1998) RE: Answer: WebDelivery downloads alias, not original ? (1997) Summary: Webmerchant quitting (1998) Need a better [elapsedtime] (2000) Showif, Hideif reverse logic ? (1997) can WC render sites out? (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) WebCat2b15MacPlugin - [protect] (1997) (2003) PC Hub and Web Merchant (1998)