Well, I don't know how it works. I can't pass the _ POST value.

Source: Internet
Author: User
Well, I don't know how it works. I can't pass the _ POST value. Reply to discussion (solution)

Try var_dump ($ _ POST ['title']);

What is the development environment? I have encountered this problem with phpstorm 10 before. my solution is to transfer the value through the apache server.

Var_dump doesn't work either. I tried it. I'll try another Apache.

I have nothing to do with Apache ~ What should I do! What's wrong with me?

I am a newbie. do you want to try this. You can output 111 by default, or cancel 111 by yourself. The test is effective in two examples, hoping to help you.






Test. php
Echo "default output value:". $ _ POST ["title"];
?>
------ Split line -----




Test. php
Echo "the value you entered is:". $ _ POST ["title"];
?>

OH, NO, not work, but thank you.

Print_r ($ _ POST );
Echo file_get_contents ('php: // input ');
View Results

In addition, remove enctype = "multipart/form-data ".

I also had this problem. later I changed phpstorm10 to phpstorm9 and then I could use post to transfer the value. it may be because of a problem with the built-in server of phpstorm10.

Finally, change PHPStorm to 9.

I also had this problem. later I changed phpstorm10 to phpstorm9 and then I could use post to transfer the value. it may be because of a problem with the built-in server of phpstorm10.


That's it. I changed 9, and then I can! Thank you.
Related Article

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.