Hey,
Is this possible? I think I had this before, but forgot code.
Example: On a contact form, it would show the persons IP number saying like:
"your IP Number will be sent with the email" etc.
++REP for help.
Printable View
Hey,
Is this possible? I think I had this before, but forgot code.
Example: On a contact form, it would show the persons IP number saying like:
"your IP Number will be sent with the email" etc.
++REP for help.
If I can remember correctly, you can't do it. HTML is client side and doesn't have anything to do with the server (it's just a page on the server). You can use PHP though.
Just edit that, and you should be done.Code:<script language="JavaScript">
VIH_BackColor = "palegreen";
VIH_ForeColor = "navy";
VIH_FontPix = "16";
VIH_DisplayFormat = "You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%";
VIH_DisplayOnPage = "yes";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>
URL = http://www.hashemian.com/tools/visitor-IP.htm
But, there is a much simpler one here http://www.wallpaperama.com/forums/h...user-t399.html
Thanks,
++++++++rep lol :)
If it's on a contact form chances are it's PHP.
PHP Code:<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo ('Your IP is: <br />$ip');
?>
Possible via Javascript:
either use document.write or use a popup to display it ;).Code:var ip = '<!--#echo var="REMOTE_ADDR"-->';