如何获得Symtem的IP地址? [英] How to procure IP Address of Symtem ?

查看:101
本文介绍了如何获得Symtem的IP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个用户注册表格

,其中用户必须填写姓名,emil id,电话号码。



在后端我创建了一个带有列的表格

name,email_id,Phone_number,Ip_address。


$ b按钮点击事件$ b

我编写了这个编程。

插入到tbl_login值(textbox1.text,textbox2.texttextbox3.text)



我想插入用户系统的IP地址值(谁正在注册。)



请帮忙我。

Hi,
I have created a user registration form
in which user have to fill Name,emil id, Phone Number.

In the back end i have created a table with the columns
name,email_id,Phone_number,Ip_address.


on button click event i have written this programming.
insert into tbl_login values (textbox1.text,textbox2.texttextbox3.text)

I would like to insert the value for IP address of the system of the user(who is doing registration.)

Please help me.

推荐答案

假设这是一个网站(而且这是你唯一需要知道的时间),这非常简单:Response.UserHostAddress [ ^ ]会给你。
Assuming this is a website (and it's pretty much the only time you'd need to know) it's pretty trivial: Response.UserHostAddress[^] will give it to you.


这篇关于如何获得Symtem的IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆