How to detect the visitor's IP address using HTML?

前端 未结 6 772
暗喜
暗喜 2020-12-29 13:59

How can i detect the visitors IP Address using HTML for my website? I have a contactform.html and a formsent.html. And when formsent.html sends the contact info to my email

6条回答
  •  情深已故
    2020-12-29 14:35

    You can't.

    HTML is a markup language, not a programming language. it doesn't "do" anything - it just structures content.

    You need to use a programming language, such as PHP, ASP, etc.

提交回复
热议问题