how to make form fields inactive/disabled after submitting
Hello!
I wonder how I can make the fields of my form inactive/disabled for as many seconds as it will take after I submit the form and it goes to another page? In other words I don't want users to be able to change anything in the fields after they submit the form.
You can use an onsubmit event in the form tag, calling a JavaScript function which will disable any form elements you want to affect. Since PHP is running on the server, not the browser, it will not normally be able to help you in this respect.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks