How to access the form's 'name' variable from PHP

后端 未结 12 2141
小鲜肉
小鲜肉 2020-11-29 09:07

I\'m trying to create a BMI calculator. This should allow people to use either metric or imperial measurements.

I realise that I could use hidden tags to solve my pr

12条回答
  •  盖世英雄少女心
    2020-11-29 09:46

    To identify the submitted form, you can use:

    • A hidden input field.
    • The name or value of the submit button.

    The name of the form is not sent to the server as part of the POST data.

    You can use code as followed

提交回复
热议问题