$_POST is empty after form submit

后端 未结 6 533
执笔经年
执笔经年 2020-12-10 17:39

I am using Twitter Bootstrap to build a web application. I have a form where user should enter his name and last name and click submit. The problem is, that the $_POST

6条回答
  •  青春惊慌失措
    2020-12-10 18:11

    The problem is that you're checking if $_POST['send'] is set, but it won't be. The "send" field in your form is the button, but the button doesn't have a value, so it won't be included in $_POST.

    Hope that helps.

提交回复
热议问题