PDA

View Full Version : Scripts for TGP


shane94
01-27-2002, 01:46 PM
Does anyone know of any scripts that tells the surfers ip on a submit form? Also can it be set to blacklist certain emial addys?

TIA!

Shane

The Tweet
01-27-2002, 03:30 PM
In PHP it's easy.

$ip1=$REMOTE_ADDR;
PRINT"$ip1";

ragnar
01-27-2002, 06:14 PM
X-3 scripts has it also

Carneal
01-27-2002, 07:33 PM
in cgi put this:

$ip = "$ENV{'REMOTE_ADDR'}";
print "$ip";

in PHP put

$ip = getenv(REMOTE_ADDR);
print "$ip";

Webmaster Scripts
01-27-2002, 09:05 PM
Or better this way :)

PHP
---
echo getenv("REMOTE_ADDR");

PERL
----
print $ENV{'REMOTE_ADDR'};

shane94
01-27-2002, 11:11 PM
thanks guys! I got them working!!!

;)
Shane