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:
Web Merchant process after credit card clears (1998)
Emailer setup (1997)
More on the email templates (1997)
Re1000001: Setting up shop (1997)
Problems with AOHell (1999)
Re:2nd WebCatalog2 Feature Request (1996)
[WebDNA] Seriously what is wrong here? (2011)
RE: ANother SHOWIF problem (1997)
Smart caching problems with 2.1b3? (1997)
Re2: frames & carts (1997)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Swear words (2002)
WebCommerce: Folder organization ? (1997)
Webcat Hosting in London or UK (2003)
flushdatabases (2000)
off topic fetch vs PCS photomaster (1997)
Showif, Hideif reverse logic ? (1997)
Unexpected error (1997)
New Guestbook Source (1997)
Country & Ship-to address & other fields ? (1997)