I wrote a test program before, in which adding and modifying are written together. When I need to use modification, an input box is used in the form, and the disabled attribute is not set. Later, when I need to connect with the front-end written by others, because the id cannot be modified, the other party sets a Copy code The code is as follows:Task ID: <input type="text" name="taskId" disabled="disabled"> Seeing that all the SQL statements sent were insert, I struggled for a while and found that there was something wrong with the disabled attribute. I asked Teacher Gu and found an article in Baidu Space titled "How to submit the value of a disabled form field in a form". I realized that this would cause the submission to fail. The solution is the following reply from @trocebao. The rookie has learned some new tricks. Well, I'll record them for future reference. |
<<: Detailed steps for Linux firewall configuration (based on yum warehouse configuration)
Regarding display: flex layout, some people have ...
1. Implementation ideas The purpose of interface ...
1. Install the dependency packages first to avoid...
Grouping and linking in MYSQL are the two most co...
hash mode (default) Working principle: Monitor th...
This article example shares the specific code of ...
When the table header is fixed, it needs to be di...
Table of contents Preface Active withdrawal Excep...
As we all know, the CSS position absolute is set ...
Preface Arrays are a special kind of object. Ther...
1. Command Introduction The ifconfig (configure a...
Basic environment configuration Please purchase t...
Table of contents Preface Setting up with Vue CLI...
1. E-Commerce Icons 2. Icon Sweets 2 3. Mobile Ph...
Table of contents Effect display Component Settin...