HTML form not retaining input values after a submission with 'GET' method
I've tried everything I can think of but I've looked through the documentation and I'm still confused about I have an HTML form that submits data using the 'GET' method, but after submission, the page reloads and the input values are cleared, which is not the behavior I expect... Here's the relevant part of my code: ```html <form action="/submit" method="GET"> <input type="text" name="username" value="JohnDoe" /> <input type="email" name="email" value="john@example.com" /> <input type="submit" value="Submit" /> </form> ``` When I fill out the form and hit submit, I see the URL updates correctly with the parameters (e.g., `?username=JohnDoe&email=john@example.com`), but once the page reloads, the input fields are empty. I've attempted to add the `autocomplete="on"` attribute to the input fields, but it hasn't solved the scenario. In my scenario, I want the inputs to retain their values after submission so that the user can see what they entered, especially if there are validation errors. Iām serving this HTML through a basic Node.js Express server. I've checked the console for errors, but there are no messages appearing that could help diagnose the scenario. Is there a way to keep the form's input values visible after the page reload? Any help would be appreciated! I'm developing on Windows 11 with Html. I'd really appreciate any guidance on this.