Log in

View Full Version : Your ip is : Code



Helpie
19-03-2007, 05:08 PM
Need the code that send the ip with the contact from does any one have it or know where i cna get it :D

hybride
19-03-2007, 05:12 PM
<?php
$ip = getenv("REMOTE_ADDR") ;
?>Put that into a form thingy file.

Invent
19-03-2007, 05:17 PM
NEVER have this


<?php

$ip = getenv("REMOTE_ADDR");

echo("<input type='hidden' value='$ip' name='ip>");

?>

So basically NEVER have the IP defined on the actual form because someone can just say use Artmoney and change their IP.

So always define their IP on the send.php file or whatever.

Helpie
19-03-2007, 05:59 PM
Thanks guys + Rep .. Do i just stick this on the top of my contact page.. And it shows as a php in macromedia is this right?

EDIT: Whilst were on forms i was woendring if you could help me on this one
<input type="submit" name="Submit" value="Submit" id="Submit" /> Were do i put and email address?
How do i make thanks for your application screen after clicking submit?

Thanks guys

Want to hide these adverts? Register an account for free!