This is a discussion on "Show the user their IP addy?" within the JavaScript Forum section. This forum, and the thread "Show the user their IP addy? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Show the user their IP addy?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Show the user their IP addy?
Hi,.
We have this code already to view all about the users browser. But what i need exactly is some sort of addition to it to see the users IP addy. We need this for our customer website. The customer needs to be able to view their IP addy and this makes our job alot more easy to solve their issues. so the boss says lol. Here is my code so far
God invented java to drive us insane lol. thank you for your time Last edited by c010depunkk; Jan 16th, 2008 at 20:56. Reason: please use [HTML] tags when posting HTML |
|
|
|
||||
|
Re: Show the user their IP addy?
You have to use php:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Show the user their IP addy?
Thanks for the info.
Do i just add the PHP code to my XHTML/CSS? I have made our site using XHTML and used a CSS stylesheet. Is the code you posted above the code i need?. |
|
||||
|
Re: Show the user their IP addy?
I'm not sure how your page is layed out.
But that will just print the IP Address. If you put it that on it's own in a PHP script and I visited it, I would just see 78.32.29.193. You can put it wherever you want in your file, just make sure it ends in .php.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Show the user their IP addy?
Is the page/sites that you are developing is a static or a dynamic sites?
Basic explaination: Static: no database Dynamic: with database interaction. If your web host support PHP, then you could use Alex code provided you save the page in .php extension If it do not support PHP, you could use ASP then like this:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: Show the user their IP addy?
There will be database interaction on our website.
Its our main business and we have a client log in section and we are adding a shopping feature plus we are trying to work on a build your own product section where customers can mix and match all products to create their Computer. Its computer sales we work in. Thats one of the reasons we need to show user IP as its to do with our tech side of the business. |
|
|||
|
Re: Show the user their IP addy?
So, did Alex way or mine solved your problem?
again...What language do you use to build your site?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Images don't show | lung | JavaScript Forum | 3 | Nov 17th, 2007 10:54 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| Slide show/s :) | OmiE | Flash & Multimedia Forum | 4 | May 25th, 2007 04:55 |
| favicon doesn't show | berjoe | Graphics and 3D | 20 | Nov 13th, 2006 14:32 |
| not sure what its called but i can show you what i mean | bruno89 | Web Page Design | 12 | Oct 17th, 2006 07:15 |