Network54 Tech Tips
How to display a visitor's IP address
Time: September 03 05:10am


To display a visitor's IP address (to them) using PHP,
just add this line of code where you'd like the IP address to be displayed on your page:
<p>Your IP Address: <?echo $REMOTE_ADDR ?></p>
Make sure you escape the PHP script before adding that line of code. It will show as this:
Your IP Address: 38.107.191.97

To display a visitor's IP address using JavaScript (most likely your choice for Network54 forums), just go to
THIS WEB SITE and follow the directions there

You will get code to show the following:


[ Network 54 Tech Tips ] [ How to post pictures ] [ How to post a link ]
[ Adding a POST button ] [ Adding Content to Different Pages ]
[ PHP Redirect ] [ HTML Redirect ] [ Embed Forum in a Frame ] [ Smiley Generator ]
[ Using Frames with your forum ] [ Using Inline Frames with your forum ] [ Adding Image Maps to your forum ]
[ Adding images to your forum ] [ How to display a visitor's IP address ] [ How to Add Links to your forum ]
[ Adding a Marquee - (Scrolling Text Box) ] [ How to add Simple Scripts ]
[ How to add Sound to your Forum ] [ How to add Animation to your Forum ]
[ Adding a Sticky Message ] [ Adding Tables ] [ Adding Votelet Links ]
[ Adding snow for the holidays }
[ Browser Issues ] [ AOL Issues ]



If you came from a direct link, use the "Back Button".
If you came from a signature link, use "Close This Window".

OZ Website Services Website Services

Valid HTML 4.01 Transitional