Teacher case'edit': The following code seems to be missing
2017-12-09 16:08:52
0
2
1187

case'edit':

$id=$_POST['id'];

I repeatedly tested and found that where id='$id'; the $id inside is wrong , because the edit.php form does not submit $id, so you need to re-acquire and set a variable under action.php.

Finally got it done. I don't know if there is another way I got it wrong.

reply all (2)
电动小老虎

Is such that. That id is passed through a hidden field

Then you inject the object in the controller $request->param() can obtain all request objects.

    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!