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 meansa given customer will probably not have the same IP address on more thanone visit. Not only will they not be getting their data filled in, but someunsuspecting customer who is now using an IP address that you have in youdatabase for somebody else will be able to see all of that person'sinformation. AOL takes IP allocation one step further and dynamicallyallocates IP addresses for _each request_, so two hits from the same AOLuser in the same session are likely to appear to be coming from twodifferent addresses.If you want to implement a customer-recognition system, you should probablyconsider using cookies.-DaveAt 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.como--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Associated Messages, from the most recent to the oldest:
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 meansa given customer will probably not have the same IP address on more thanone visit. Not only will they not be getting their data filled in, but someunsuspecting customer who is now using an IP address that you have in youdatabase for somebody else will be able to see all of that person'sinformation. AOL takes IP allocation one step further and dynamicallyallocates IP addresses for _each request_, so two hits from the same AOLuser in the same session are likely to appear to be coming from twodifferent addresses.If you want to implement a customer-recognition system, you should probablyconsider using cookies.-DaveAt 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.como--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Dave MacLeay
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...