...

View Full Version : Have a form automatically mailed to you



stophon4
03-31-2004, 07:32 PM
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:


<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.

sidvorak
03-31-2004, 08:01 PM
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>

stophon4
03-31-2004, 08:04 PM
OK, I see that gets rid of the error but it doesn't automattically mail it to me.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum