The verification rule keeps popping up that the user name is empty?
brother_water
brother_water 2017-08-15 22:18:29
0
4
1501

$status = 0;

$result = '';

$data = $request->param();

## ’ s ’ s ’ s ‐ to 'name|username'=>'require',

# ‐‐‐‐‐‐‐‐‐‐‐‐‐ $data, $rule);

return ['status'=>$status, 'message'=>$result, 'data'=>$data];

brother_water
brother_water

reply all (4)
Sarah

I watched the video from the beginning today and checked step by step. It turned out that there was a mistake here

$rule = [
'username|username' => 'require',
'password|password' => 'require ',
'verify|Verification code' => 'require|captcha'
];

The template I downloaded is here


The name attribute here is 'username', and the attribute value in the teacher's template is 'name'. After changing it, there will be no other problems

    至尊宝

    There are many problems with the courseware in this section

    There is nothing in constructing the query conditions and it is still in a place where the verification code cannot be empty

      ringa_lee

      The value of the username was not received. Can you dump the received post data?

        至尊宝

        This is the same problem

        • reply I want to ask if it has been solved? This is also the problem
          Sarah author 2017-08-30 17:27:26
        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!