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)
1. Permanent modification, valid for all users # ...
Reference: MySQL character set summary utf8mb4 ha...
CSS plays a very important role in a web page. Wi...
This article introduces 4 methods to achieve mask...
Mixin method: The browser cannot compile: The old...
Table of contents Common array methods pop() unsh...
I just happened to encounter this small requireme...
Preface I need to add a synchronized scrolling fe...
Table of contents What is native JavaScript A. Ch...
This article shares the specific method of instal...
Table of contents variable Use meaningful and pro...
First download the compressed version of mysql, t...
Click here to return to the 123WORDPRESS.COM HTML ...
If you want to display extra text as ellipsis in ...
Recently, there have been many database-related o...