OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

IP address

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> IP address
Page: [1]
 
kitty6

 

Posts: 165
Joined: 10/15/2005
Status: offline

 
IP address - 6/24/2009 8:08:44   
I would like to create a form with a text box that showed the that person's public IP address.

Does anyone know the code for that?

Thanks.
treetopsranch

 

Posts: 1527
From: Cottage Grove, OR, USA
Status: offline

 
RE: IP address - 6/24/2009 10:27:18   
Is THIS what you are looking for?

_____________________________

Don from TreeTops Ranch, Oregon

"I've got a taste for quality and luxury"


(in reply to kitty6)
kitty6

 

Posts: 165
Joined: 10/15/2005
Status: offline

 
RE: IP address - 6/24/2009 21:39:15   
That is exactly what I'm looking for. The only thing is it calls for a shtm file type instead of htm. When I create the page test.shtm and try to submit the form, nothing happens. Does it have to do with the shtm vs htm?

Thanks.

(in reply to treetopsranch)
treetopsranch

 

Posts: 1527
From: Cottage Grove, OR, USA
Status: offline

 
RE: IP address - 6/24/2009 23:33:21   
SHTM file is a HTM Document with SSI. Server Side Includes (SSI) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served.

You will need a web server capable of running SSI (most web servers do this by default). Check your host to make sure.

It should work.

_____________________________

Don from TreeTops Ranch, Oregon

"I've got a taste for quality and luxury"


(in reply to kitty6)
BobbyDouglas

 

Posts: 5523
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: IP address - 7/2/2009 2:26:02   
You can also do this using PHP and ASP.

Using PHP:

<?php echo $_SERVER["REMOTE_ADDR"]; ?>

Using ASP:

<% Response.Write Request.ServerVariables("REMOTE_ADDR") %>


_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to treetopsranch)
Page:   [1]

All Forums >> Web Development >> General Web Development >> IP address
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts