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:

WebCat b13 CGI -shownext- (1997) Multiple Web Delivery Methods?? (1999) Orders and notification (1998) Re:Add (1998) Emailer [cart] file names (1997) Rollovers (1999) Cancel Subscription (1996) WebCat2b13MacPlugin - nested [xxx] contexts (1997) WebMerchant and PC Auth Hub (1999) random random links (1999) Re:Emailer and encryption (1997) [group] ? (1997) why is this line in GeneralStore? (1998) Bug or syntax error on my part? (1997) Can ShowNext do this? (2000) japanese characters (1997) WebCat2 - Getting to the browser's username/password data (1997) Separate SSL Server (1997) default value from Lookup (was Grant, please help me) (1997) Country & Ship-to address & other fields ? (1997)