Re: IP Address
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36741
interpreted = N
texte = >Just a quick question...>>in the [ipaddress] variable. Can you have it display the actual IP, without>the extra zeros? (001.003.001.003)Yes, use getchars to grab each of the four 3-digit sections, then wrap each section in a math context. Whenever a number is placed in a math context, it gets rid of the extraneous leading zeros if there are any. Try this:[math][getchars start=1&end=3][ipaddress][/getchars][/math].[math][getchars start=5&end=7][ipaddress][/getchars][/math].[math][getchars start=9&end=11][ipaddress][/getchars][/math].[math][getchars start=3&end=16][ipaddress][/getchars][/math]=================================================Kenneth Grome WebDNA Consultanttelephone number: 011 63 32 486-9077telephone number: 011 63 919 749-0060business web site: http://webdna.netpersonal web site: http://kengrome.com=================================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Just a quick question...>>in the [ipaddress] variable. Can you have it display the actual IP, without>the extra zeros? (001.003.001.003)Yes, use getchars to grab each of the four 3-digit sections, then wrap each section in a math context. Whenever a number is placed in a math context, it gets rid of the extraneous leading zeros if there are any. Try this:[math][getchars start=1&end=3][ipaddress][/getchars][/math].[math][getchars start=5&end=7][ipaddress][/getchars][/math].[math][getchars start=9&end=11][ipaddress][/getchars][/math].[math][getchars start=3&end=16][ipaddress][/getchars][/math]=================================================Kenneth Grome WebDNA Consultanttelephone number: 011 63 32 486-9077telephone number: 011 63 919 749-0060business web site: http://webdna.netpersonal web site: http://kengrome.com=================================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Kenneth Grome
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:
POST through TCPConnect (1999)
Grant, please help me ... (1997)
Bulk capture for Authorize.net (2004)
Keep away (1997)
[sendmail] and [formvariables] (1997)
Misunderstanding?? (1997)
summ=T (2003)
HomePage Caution (1997)
[GROUPS] followup (1997)
Sort Order on a page search (1997)
RE: ShowNext Command (1997)
Date Sorting (1997)
PROBLEM (1997)
FREE Stuff .. (2003)
TIP: Address info to Directory in Sitebuilder (2004)
ShowIf variables (1997)
StoreBuilder ADD 2 CART redirects to default.tpl - PLEASE STOPTHIS! (2002)
[protect] on NT? (1997)
orderfile and setlineitems (1998)
WebCat2 - [include] tags (1997)