<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <form action="index.php?r=haha/zeng" method="post"> <input type="hidden" id="_csrf" name="<?php echo Yii::$app->request->csrfParam;?>" value="<?php echo yii::$app->request->csrfToken?>"> <table border="1"> <tr> <td>姓名</td> <td><input type="text" name="name"/></td> </tr> <tr> <td>密码</td> <td><input type="text" name="pwd"/></td> </tr> <tr> <td>属性</td> <td><input type="text" name="attr"/></td> </tr> <tr> <td>年龄</td> <td><input type="text" name="age"/></td> </tr> <tr> <td><input type="submit"value="提交"/></td> <td><input type="reset" value="重置"/></td> </tr> </table> </form> </body> </html>