Moderator big is in no recruit, trouble come in Look at T t
I made a TP framework query system, using the I method to get the post data, the $_post method gets no value ... But change to get method can output to the screen ... Thinkphp on the regiment search many people have encountered this problem, but there is no solution ... Ask for advice!
This is the program section.
namespace Home\controller;
Use Think\controller;
Class Indexcontroller extends Controller {
Public Function index () {
$this->display (Mobile);
}
Public Function Tbid () {
/* $TBID =m ("Tbid");
$data = $TBID->where (' id=1 ')->find ();
Print_r ($data);
Echo I (POST). "
";*/
$this->display (tbid);
}
Public function See () {
echo "SAF";
Print_r (I (' Post.search ', ' Kong '));
Print_r (I (' Post. ', ' Kong '));
echo $_post[' search ']. ' ASF ';
}
}
This is the page section
{Tbid_result}
Change to get to get the value ... Post is not allowed
------Solution--------------------
The Xu edition is a big time to have a recruit
Words directly with I (' search ') to get on it, at least my side has never had a problem, is $_post all empty??
------Solution--------------------
How is the number of I functions defined?
Stick it out and look.