yii can directly transfer value post, but can not directly get passed by value

. 1 <-! Yii2.0 get method with traditional values ->
 2 <Action = form "the index.php" Method = "get">
 . 3      <-! Yii2.0 get method with traditional values can be added hidden successful ->
 . 4      <INPUT type = "hidden" name = "R & lt" value = "name of the controller / method name">
 . 5      <INPUT type = "text" name = "User">
 . 6      <INPUT type = "Submit" value = "Add">
 . 7 </ form>
View Code

<-! Yii2.0 get method with traditional values ->
<form Action = "index.php" Method, = "get">
<-! Yii2.0 get with the traditional method of value must be added before they can successfully hidden - >
<INPUT type = "hidden" name = "R & lt" value = "name of the controller / method name">
<INPUT type = "text" name = "User">
<INPUT type = "Submit" value = "Add">
</ form>

Guess you like

Origin www.cnblogs.com/funbaby/p/11067709.html