I have a simple HTML form:
<form action="https://[URL goes here]" method="POST">
<input type="radio" name="args" value="on">Value 1.
<br>
<input type="radio" name="args" value="off">Value 2.
<br>
<input type="submit" value="Submit!">
</form>
The problem I'm having is that the URL is returning some status information and the page reloads with that status information. I'd like the page that the form is on to simply reload and ignore any response from the server.
I've tried to replace the
<input type="submit" value="Submit!">
with
<input type="submit" onclick="return false" value="Submit!">
but that does not work. I need to pass the "args" value with the form, but I don't care what the server returns. How do I do this?