DonHale
Mon Feb 14 23:15:07 CST 2005
Is there a way an email can be sent when a particular page is visited with
the IP address or domain name?
"John Cello" wrote:
> Adam:
>
> This script works if your server is running SSI.
>
> Paste this into the body of your page:
> <script language="javascript">
>
> //IP address display: By
http://www.Hostroute.com
> //Script featured on JavaScript Kit (
http://www.javascriptkit.com)
>
> var ip = '<!--#echo var="REMOTE_ADDR"-->'
>
> function ipval() {
> document.myform.ipaddr.value=ip;
> }
> window.onload=ipval
> </script>
>
> <form method="post" action="" name="myform">
> <input type="text" name="ipaddr" readonly>
> </form>
>
> You'll need to rename your page with a .shtml extension.
>
> Hope this helps
>
> John Cello
> www.johncelloconsulting.com
>
> "Adam" wrote:
>
> > Is there a good java script that shows the IP address of a user. I want an
> > IP address to show on a form page, so the user knows that there IP address is
> > being recorded. But I couldnt find any good scripts.