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

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

    In the form submitting button (id method of form is post):

    
    

    In the PHP file:

    if (isset($_POST['commentData'])){
        // Code
    }
    

提交回复
热议问题