Reversing [ipaddress] normalization
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16634
interpreted = N
texte = How can I reverse the normalized [ipaddress] and put it back to the proper way of writing IP addresses?I have to automatically submit many different ip addresses to a service via WebCatalog form -- but the server I'm sending this data to does not accept normalized WebCatalog IP addresses (with leading zeros where there were none before) ...... so now I have to change them back from what WebCat does, and make them into the same form that other Internet software expects to see them in. At first I thought this would be easy using the new [convertchars] ...But I forgot that [convertchars] cannot handle more than ONE character in the from field, so I cannot find the removeable zeros by replacing .0 with .Even that would require that I also look at the first two digits to see if one or both are zeros, since they are not preceeded by a dot ... but I can handle that, as long as the OTHER extra zero's are removed properly.So ... how can I do it?Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
How can I reverse the normalized
[ipaddress] and put it back to the proper way of writing IP addresses?I have to automatically submit many different ip addresses to a service via WebCatalog form -- but the server I'm sending this data to does not accept normalized WebCatalog IP addresses (with leading zeros where there were none before) ...... so now I have to change them back from what WebCat does, and make them into the same form that other Internet software expects to see them in. At first I thought this would be easy using the new
[convertchars] ...But I forgot that
[convertchars] cannot handle more than ONE character in the from field, so I cannot find the removeable zeros by replacing .0 with .Even that would require that I also look at the first two digits to see if one or both are zeros, since they are not preceeded by a dot ... but I can handle that, as long as the OTHER extra zero's are removed properly.So ... how can I do it?Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
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:
A quickie question (1997)
updating a series of records via a text file? (1999)
getchars broken? (1997)
WebTen and WebCat (1997)
[searchString] (1997)
Associative lookup style? + bit more (1997)
Cold Fusion Buster (1997)
Banner Ad example (Typhoon) and WebCatalog (1997)
[isfile] ? (1997)
Clean Code: Rules for inserting keyboard returns? (1997)
[protect admin] (1997)
[cart] tag (2000)
sendmail for email (was Netforms) (1998)
Extended [ConvertChars] (1997)
WebMerchant Integration with Verifone's vPOS (1998)
WebCat2 several catalogs? (1997)
RE: Formulas.db + Users.db (1997)
SQL Error: 00000 (2004)
RE: [WebDNA] WebSite Examples (2008)
WebCatalog for guestbook ? (1997)