Capture IP Address
I need to capture the IP address of the visitor submitting the form created by FB. Can I add this script from FB?
I need to capture the IP address of the visitor submitting the form created by FB. Can I add this script from FB?
This is what I use for my contact form:
<input name="IP_Address" type="hidden" value="<?php echo((isset($_SERVER["REMOTE_ADDR"]))?$_SERVER["REMOTE_ADDR"]:"") ?>">
Just add it to your form in code view.
I tried that and my entire page no longer appeared.
If you page is blank, it means a php error is occurring and error reporting is turned off.
Add the following at line 1 to turn error reporting on:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.