This topic is locked

Validating IP Address

10/16/2008 10:49:55 AM
PHPRunner General questions
S
Stettin author

v5.0
I'm currently working on a page to add network devices to a database. I want to make sure there are no typos in the IP address field. I found a sample javascript that can do this at

The Javascript Source
Is it possible to add this code to the "Validate As" dropdown, which currently has credit card, currency, e-mail, etc?

Sergey Kornilov admin 10/17/2008

We plan to add an option to add your own validation routines in one of the following versions.

S
Stettin author 10/17/2008

We plan to add an option to add your own validation routines in one of the following versions.


Ok, but I still need a way to validate. It would be nice to be able to do this in Javascript. As a workaround I've tried putting in my PHP validation function into the "Before Add" custom code event and it keeps the record from being added. I just tried adding a Javascript alert() just prior to the return false and it brought up a popup warning before reloading the add page.