How to send hidden data

前端 未结 1 1180
予麋鹿
予麋鹿 2020-12-09 08:28

I have a form(like the one below for example) where I type data, but I also want to send data which are not directly entered by the user, for example a generic Id(for a

1条回答
  •  臣服心动
    2020-12-09 08:57

    try a hidden input:

    
    

    The user can't see it, but remember that such inputs can be spoofed and need to be validated on the server just like any other input.

    0 讨论(0)
提交回复
热议问题