$_POST is empty after form submit

后端 未结 6 535
执笔经年
执笔经年 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:04

    I have notice that using 'name' attribute doesn't work well with Bootstrap Validator for (if(isset($_POST["send"]))).So in case if you like to add validation on your form then I recommend you to follow this way!

    Solution

    
    

    php

    if($_SERVER['REQUEST_METHOD'] == 'POST')
    

提交回复
热议问题