FORMfields, the premiere web framework
Support Home | Knowledge Base | Documentation | Forums | Contact Us
FORMfields & FORMgen :: Field Customizations

Displaying an IP Address

(2150 views. Last Updated: 2009-07-08 1:29 PM)

He are 2 examples of how to display an IP Address. Simply add the following to your form's structure:

1. Style 1, use a DescriptionField:
$ffForm->addField(new DescriptionField("ip_warning", "Your IP Address is " . $_SERVER["REMOTE_ADDR"]));
Note: This method will not actually store the IP Address in your database. To store the IP Address, you should use the method below.

2. Style 2, use an IpAddressField:
$ffForm->addField(new IpAddressField("IP Address"));
Support | Earn Money
Copyright © 2005-2020 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.