View Single Post
Old 04-17-2003, 06:41 AM   PM User | #3
Skyzyx
Regular Coder

 
Skyzyx's Avatar
 
Join Date: Aug 2002
Location: Silicon Valley, CA
Posts: 980
Thanks: 0
Thanked 0 Times in 0 Posts
Skyzyx is on a distinguished road
#1) You need to read the posting guidelines to know that your subject line sucks.

#2) To show the IP and Port, you could use PHP:

Code:
<?php
echo '$_SERVER["REMOTE_ADDR"] : $_SERVER["REMOTE_PORT"]';
?>
Unfortunately, PHP and JavaScript can't share variable values, so you'll have to modify this snippet to send the values to hidden form inputs, submit the form, via GET, to a new PHP page, and parse the URL with JavaScript to determine what IP and Port are being used.

I'm going to bed, so I'm not going to write anything more right now. I suggest you check out PHP.net for documentation, and then learn how to parse URLs with JavaScript.

Goodnight.
__________________

Creator of SimplePie and Tarzan AWS, co-founder of WarpShare, co-built the Y! Messenger website, usability-focused, and an INFJ personality.
Skyzyx is offline   Reply With Quote