Re: customer.db and forms

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22625
interpreted = N
texte = The form is not appearing because you are putting it inside the [FoundItems] context. When no items are found, nothing inside the [FoundItems] is executed. You probably need to do something like [Search ...] [FoundItems] (all of your form stuff...) [/FoundItems] [ShowIf [NumFound]=0] (all of your form stuff, but without filling it in...) [/ShowIf] [Search]The real problem here is filling in customer data based on an IP address. Most ISPs dynamically alocate IP addresses when users dial in, which means a given customer will probably not have the same IP address on more than one visit. Not only will they not be getting their data filled in, but some unsuspecting customer who is now using an IP address that you have in you database for somebody else will be able to see all of that person's information. AOL takes IP allocation one step further and dynamically allocates IP addresses for _each request_, so two hits from the same AOL user in the same session are likely to appear to be coming from two different addresses.If you want to implement a customer-recognition system, you should probably consider using cookies.-Dave At 2:27 AM -0000 1/14/99, Mike Jones wrote: >Hi, Ive got a customer database. And I want to use it to automatically >fill in the fields on the order form. I check the users IPaddress and >then check that IP in the customer.db, and then use those fields to fill >in the form. But, it seems that if no records are found, then the forms >dont show up. Whats causing this? If there is a better way to do this, >that would be great. thanks. > > [search >db=customers.db&eqIPADDRESSdatarq=[Ipaddress]&namesumm=t][founditems] >value=[name]>[/showif][/founditems][/search] > >______________________________________________________ >Get Your Private, Free Email at http://www.hotmail.com o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: customer.db and forms (Dave MacLeay 1999)
  2. Re: customer.db and forms (Sandra L. Pitner 1999)
  3. Re: customer.db and forms (Sandra L. Pitner 1999)
  4. Re: customer.db and forms (Kenneth Grome 1999)
  5. customer.db and forms (Mike Jones 1999)
The form is not appearing because you are putting it inside the [founditems] context. When no items are found, nothing inside the [founditems] is executed. You probably need to do something like [Search ...] [founditems] (all of your form stuff...) [/FoundItems] [ShowIf [NumFound]=0] (all of your form stuff, but without filling it in...) [/ShowIf] [search]The real problem here is filling in customer data based on an IP address. Most ISPs dynamically alocate IP addresses when users dial in, which means a given customer will probably not have the same IP address on more than one visit. Not only will they not be getting their data filled in, but some unsuspecting customer who is now using an IP address that you have in you database for somebody else will be able to see all of that person's information. AOL takes IP allocation one step further and dynamically allocates IP addresses for _each request_, so two hits from the same AOL user in the same session are likely to appear to be coming from two different addresses.If you want to implement a customer-recognition system, you should probably consider using cookies.-Dave At 2:27 AM -0000 1/14/99, Mike Jones wrote: >Hi, Ive got a customer database. And I want to use it to automatically >fill in the fields on the order form. I check the users IPaddress and >then check that IP in the customer.db, and then use those fields to fill >in the form. But, it seems that if no records are found, then the forms >dont show up. Whats causing this? If there is a better way to do this, >that would be great. thanks. > > [search >db=customers.db&eqIPADDRESSdatarq=[ipaddress]&namesumm=t][founditems] >value=[name]>[/showif][/founditems][/search] > >______________________________________________________ >Get Your Private, Free Email at http://www.hotmail.com o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

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:

IIS4 (1998) [WebDNA] maybe silly suggestion? [founditems] (2015) WebCat for mass emailings (1997) Writing to PDF (2003) Snake Bites (1997) WebCat & WebTen (1997) [WebDNA] WebDNA crash and now emailer not working (2010) Almost There WebCat 5 on itools 7 Install Questions (2003) taxTotal, grandTotal (1997) Emailer (1997) Locking up with WebCatalog... (1997) A Suggestion? (1998) Document contains no data... (1999) carriage returns in data (1997) Server crashes when user saves or views html source (1998) Where is f2? (1997) (2003) international time (1997) Add sizes from check boxes (2002) WebCatalog can't find database (1997)