Get user IP via comment Form
Posted
by jasmine
on Stack Overflow
See other posts from Stack Overflow
or by jasmine
Published on 2010-05-06T11:05:39Z
Indexed on
2010/05/06
11:08 UTC
Read the original article
Hit count: 107
I have inserted a hidden input in my comment form:
$ip = $_SERVER['REMOTE_ADDR'];
<input type="hidden" name="c-ip" value="<?php echo $ip; ?>">
With this input, ip column is empty in mysql. What is wrong in input. Thanks in advance
© Stack Overflow or respective owner