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)
Table of contents 1. Setup 1. The first parameter...
Table of contents Introduction to utf8mb4 UTF8 by...
Table of contents Preface What situations can cau...
1. Download the RPM package corresponding to Linu...
As shown below: Copy the remote server's file...
<iframe src=”you page's url” width=”100″ he...
There are many tags in XHTML, but only a few are ...
Configuration Instructions Linux system: CentOS-7...
<body> <div id="root"> <...
In MySQL, fields of char, varchar, and text types...
Table of contents variable Data Types Extension P...
Keepalive is often used for caching in Vue projec...
1. SSH remote management SSH Definition SSH (Secu...
When we are doing front-end development, we will ...
Effect demo.html <html> <head> <me...