Home > Backend Development > PHP Tutorial > About PHP not receiving POST information from form submission

About PHP not receiving POST information from form submission

WBOY
Release: 2016-07-29 08:58:30
Original
923 people have browsed it

After debugging for a long time, the data accepted by the dump was always NULL. I thought there was a problem with the verification function of ThinkPHP. After commenting it, it still didn't work. I checked that the id written on the view also corresponded. There was no error in each field. Finally, I found it. Now:

Both the id and name must be written on the html form in View. It seems to be HTML common sense...

   <div class="form-group ">
      <label for="dormitory_num" class="col-sm-2 control-label">宿舍号</label>
      <div class="col-sm-4">
         <input type="text" id="dormitory_num" name="dormitory_num" 
            placeholder="格式:13#225" class="form-control">
      </div>
   </div>
Copy after login

The above introduces the POST information about PHP not receiving form submission, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template