I am using the following style attribute to set the user input to uppercase so that when the user starts typing in the text box for example railway, then it should
railway
This will both show the input in uppercase and send the input data through post in uppercase.
HTML
JavaScript
var someInput = document.querySelector('#someInput'); someInput.addEventListener('input', function () { someInput.value = someInput.value.toUpperCase(); });