P
Pete
Hello all
I have a form which passes an IP address to another page which then runs a
function to resolve a host name. I am trying to pass the form name 'ip' to
the string, but am having problems with the syntax. Have now spent 5 hours
on this and am calling for help.
many thanks
Pete
......................
Original string script which works has a manually entered Ip in the string
like this.
<%
Dim netDLL
Set netDLL = Server.CreateObject("NETDLL.Network")
' Display the hostname of the provided IP (yahoo's IP)
Response.Write "<b>GetHostFromIP:</b> " &
netDLL.GetHostFromIP("216.115.108.243")
%>
I am trying to get the form parameter into the string as follows, but it
fails no matter how I try.
<%
Dim ip
ip = Request.Form("ip")
%>
<%
Dim netDLL
Set netDLL = Server.CreateObject("NETDLL.Network")
Response.Write "<b>GetHostFromIP:</b> " & netDLL.GetHostFromIP
("<%Response.Write("ip")%>")
%>
I have a form which passes an IP address to another page which then runs a
function to resolve a host name. I am trying to pass the form name 'ip' to
the string, but am having problems with the syntax. Have now spent 5 hours
on this and am calling for help.
many thanks
Pete
......................
Original string script which works has a manually entered Ip in the string
like this.
<%
Dim netDLL
Set netDLL = Server.CreateObject("NETDLL.Network")
' Display the hostname of the provided IP (yahoo's IP)
Response.Write "<b>GetHostFromIP:</b> " &
netDLL.GetHostFromIP("216.115.108.243")
%>
I am trying to get the form parameter into the string as follows, but it
fails no matter how I try.
<%
Dim ip
ip = Request.Form("ip")
%>
<%
Dim netDLL
Set netDLL = Server.CreateObject("NETDLL.Network")
Response.Write "<b>GetHostFromIP:</b> " & netDLL.GetHostFromIP
("<%Response.Write("ip")%>")
%>