Is it possible to have a required form field be automatically filled with a particular string upon form submission if, and only if, it had been left blank by the user? If so, how?
Ideally, I would like to do this with minimal code, and I’m working with PHP, HTML, and CSS.
I added the javascript tag because I’m guessing that js will be necessary to “force” submission of a form with a required field left empty.
This updates the $_POST value but not the form