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

后端 未结 12 2138
小鲜肉
小鲜肉 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:38

    You could just give a name to the submit button and do what needs to be done based on that. I have several forms on a page and do just that. Pass the button name and then if button name = button name do something.

提交回复
热议问题