Workaround for validation and checking if the form has been actually posted

前端 未结 2 1282
忘了有多久
忘了有多久 2021-01-26 04:10

Here is my typical form

        $errors = array();

        if ($this->request->post(\'submit\')) { // <----- I don\'t like this line
            $post          


        
2条回答
提交回复
热议问题