Re: how to detect the user's ip when they submit a form?
| From: | rajni arya | Date: | Thu, 24 Apr 2003 04:15:30 +0000 |
| Subject: | Re: how to detect the user's ip when they submit a form? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27326@lists.php.net to get a copy of this message | ||
hi,
you can use this function to get the IP number of remote system.
if(getenv(HTTP_X_FORWARDED_FOR))
{
$ipno=getenv(HTTP_X_FORWARDED_FOR);
}
else
{
$ipno=getenv("REMOTE_ADDR");
}
regards,
rajni arya
On Mon, 21 Apr 2003, bo wrote:
> question is the same as the subject.
>
> Thank you.
>
> Bo
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>