Forum Moderators: open

Message Too Old, No Replies

Show IP address in a form text box

show return ip in form.

         

kingvandal

1:20 am on Jan 30, 2007 (gmt 0)

10+ Year Member



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

How do I make the returned IP address show up in a form field editable or not? the page is in asp

jatar_k

2:12 pm on Feb 6, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld kingvandal,

I moved your thread to the MS/ASP forum where someone can probably help you

Corey Bryant

3:41 pm on Feb 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Woudn't it be something like;
<input name="IP" size="20" value="<%Response.Write(Request.ServerVariables("remote_addr"))%>">

That will allow them to edit that IP

-Corey

brickwall

4:48 pm on Feb 6, 2007 (gmt 0)

10+ Year Member



corey's example will work, but why would you want your users to edit the IP?