Re: HideIf ip= OR ip=

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19485
interpreted = N
texte = At 12:17 PM -0800 8/17/98, Sue Ann Sanders is rumored to have typed: > I'm trying to do a HideIf command based on IP address. I'm wondering if > it's possible to put 2 IP address in the command. > > Here's my code: > [hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > > This seems to work fine with one number. > > I've tried putting in a comma along with another IP address and then it > breaks.Switch your arguements: [hideif 204.107.136^[ipaddress]][include email.txt][/hideif]. Try reading *your* HIDEIF as though it were a real sentence. You're saying, Hide this if the client's IP address contains the string '204.107.136'.If you add more to the IP address (another IP, e.g.), you're saying Hide this if the client's IP address contains the string '204.107.136,204.107.138'.The more you add to the string, the less likely the [IPADDRESS] will contain it. In fact, once the string on the right is longer than an IP address, it will be impossible for the IPADDRESS to contain it.By switching the order of the args, you're saying: Hide this if the string 204.107.136 contains the client's IP address.MichaelMichael Winston *By e-mail!: michaelw@dhorse.com Internet Coordinator *By web!: http://www.dhorse.com/ Dark Horse Comics, Inc. *By fax!: 503/654/9440 Associated Messages, from the most recent to the oldest:

    
  1. Re: HideIf ip= OR ip= (Michael Winston 1998)
  2. Re: HideIf ip= OR ip= (Brian B. Burton 1998)
  3. Re: HideIf ip= OR ip= (Michael Winston 1998)
  4. Re: HideIf ip= OR ip= (PCS Technical Support 1998)
  5. Re: HideIf ip= OR ip= (Christer Olsson 1998)
  6. HideIf ip= OR ip= (Sue Ann Sanders 1998)
At 12:17 PM -0800 8/17/98, Sue Ann Sanders is rumored to have typed: > I'm trying to do a HideIf command based on IP address. I'm wondering if > it's possible to put 2 IP address in the command. > > Here's my code: > [hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > > This seems to work fine with one number. > > I've tried putting in a comma along with another IP address and then it > breaks.Switch your arguements: [hideif 204.107.136^[ipaddress]][include email.txt][/hideif]. Try reading *your* HIDEIF as though it were a real sentence. You're saying, Hide this if the client's IP address contains the string '204.107.136'.If you add more to the IP address (another IP, e.g.), you're saying Hide this if the client's IP address contains the string '204.107.136,204.107.138'.The more you add to the string, the less likely the [ipaddress] will contain it. In fact, once the string on the right is longer than an IP address, it will be impossible for the IPADDRESS to contain it.By switching the order of the args, you're saying: Hide this if the string 204.107.136 contains the client's IP address.MichaelMichael Winston *By e-mail!: michaelw@dhorse.com Internet Coordinator *By web!: http://www.dhorse.com/ Dark Horse Comics, Inc. *By fax!: 503/654/9440 Michael Winston

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:

[WebDNA] SWITCH/CASE or SHOWIF (2008) PCS Frames (1997) method of payment (1997) Hyperboard/bulletin board available (1998) categories (1997) Looking up two prices in database? (1997) Emailer [cart] file names (1997) Keep away (1997) Date field search needs ... (1998) Using MySQL and WebDNA (2004) WebCatalog not recognizing ShoppingCarts folder (2000) Web Catalog 2 demo (1997) [WebDNA] FileUpload Issue ... cont. (2012) Use of & in text areas.... (1998) Only charge card when product shipped ? (1997) Dividers (2003) Problem displaying search result (1997) RE: [WebDNA] directory protection questions (2008) Corrupted filetypes with [movefile] (1998) Stinkin' [Referrer] (1998)