What the disabled and readonly attributes do (in forms)?

They prevent the user from interacting with a form control.

The disabled attribute creates a disabled form control (usually represented greyed-out). These controls will not be submitted to the server.

The readonly attribute prevents the user from making changes in the form control. These controls will be submitted to the server.