tyler Posted August 8, 2006 Share Posted August 8, 2006 Hey I just added that browser code in javascript really cool. I was just wondering is it possible to add ip showing to that too? and if so can i get cookies emailed to me tellng me there ip for future renfrence? Link to comment Share on other sites More sharing options...
Chocolate570 Posted August 8, 2006 Share Posted August 8, 2006 From what I know, JS is not capable of detecting IP addresses currently. Maybe in later versions. But right now, the only way to do this is use AJAX and a php page, rename your page to name.php and add the following line:<? echo $REMOTE_ADDR ?>where the IP should appear, or use an iframe. Oh, you can also use ASP and whatever, but it's most probable you have a server with php installed. As for emailing the IP to you, you'll definitely need server side code like PHP. Then you just use the mail() function inide the page. Hope that helps.Choco Link to comment Share on other sites More sharing options...
aspnetguy Posted August 8, 2006 Share Posted August 8, 2006 var ip = '<!--#echo var="REMOTE_ADDR"-->'; alert("Your IP address is "+ip);</script> you'll need to use a .shtml extension instead of the regular .html Link to comment Share on other sites More sharing options...
tyler Posted August 8, 2006 Author Share Posted August 8, 2006 Thanks but by chance does geocities suppost php? Because I'm using that temporarly and i think i tired that .php extension and it didnt work :| Link to comment Share on other sites More sharing options...
autasebo Posted October 16, 2006 Share Posted October 16, 2006 Geocities only supports HTML and Javascript for free users. PHP is for paying customers. Link to comment Share on other sites More sharing options...
Err Posted October 19, 2006 Share Posted October 19, 2006 Thanks but by chance does geocities suppost php? Because I'm using that temporarly and i think i tired that .php extension and it didnt work :| http://www.awardspace.com/The above link is to a web hosting site that supports PHP even for free accounts. Try it out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now