Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2004
    Posts
    232
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Have a form automatically mailed to you

    I have a ip address form and I want to know the ip of every person who comes to my site I want to have their ip mailed to me, I have this code, I just need a automatic submit:
    Code:
    <head>
    <title>Smiley City</title>
    <script language="javascript">
    <!-- Original:  Hostroute.com -->
    <!-- Web Site:  http://www.hostroute.com/script_ip.html -->
    var ip = '<!--#echo var="REMOTE_ADDR"-->'
    document.write("<form action='http://blinded.org.uk/mailit/mailit.php' method='post'>")
    document.write("<INPUT type='hidden' Value='" + ip + "'>")
    document.write("<input type='hidden' name='id' value='56'>)
    document.write("</form>")
    </script>
    </head>
    Please help.

  • #2
    New Coder
    Join Date
    Mar 2004
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts
    why not try something like this...

    <head>
    <title>Smiley City</title>
    <script language="javascript">
    <!-- Original: Hostroute.com -->
    <!-- Web Site: http://www.hostroute.com/script_ip.html -->
    var ip = '<!--#echo var="REMOTE_ADDR"-->'
    document.write("<form action='http://blinded.org.uk/mailit/mailit.php' method='post' onLoad='submit();'>")
    document.write("<INPUT type='hidden' Value='" + ip + "'>")
    document.write("<input type='hidden' name='id' value='56'>)
    document.write("</form>")
    </script>
    </head>

  • #3
    Regular Coder
    Join Date
    Mar 2004
    Posts
    232
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK, I see that gets rid of the error but it doesn't automattically mail it to me.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •