Moderator is greatly in no recruit, trouble come in and look at T t

Source: Internet
Author: User
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.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.