|
|||
|
Hey there,
Instead of outputting the IP address, you could store it in a variable and then get the hostname of the user. PHP Code:
Sincerely, Travis Walters |
|
|||||
|
HTML Code:
<html> <head> <script language="JavaScript"> function disp_ip(){ var ip = '<!--#echo var="REMOTE_ADDR"-->'; document.write(ip) } </script> </head> <body> <form> <input type='button' value='Check your Ip' onClick='disp_ip();'> </form> </body> </html> ![]()
__________________
|
| Sponsored Links |
|
|
|
|||
|
If there is not any host name it will not works. Otherwise it will display host address.
So you can use both code!
__________________
Black Bear | Proxy Server | Ip Address | Web Proxy | Art Painting | Find Ip Address |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check My Blog | Deathcry | Site Reviews | 7 | 01-14-2008 09:57 PM |
| Check if a file exists? | Lop | Pascal/Delphi | 3 | 01-07-2007 01:54 AM |
| How Do I check my HTML? | skilletsteve | HTML Programming | 1 | 09-13-2006 12:12 PM |
| Check if a file exists | Lop | C and C++ | 4 | 08-07-2006 11:03 PM |
| Best way to check if an object is null? | dirkfirst | Managed C++ | 0 | 08-01-2006 08:29 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%