I have a form that displays two radio buttons (using PHP).
echo "<form action=\"next.php\" method=\"post\">"; echo "<input type=\"radio\" name=\"paid\" value=\"0\" checked=\"checked\">No<br>"; echo "<input type=\"radio\" name=\"paid\" value=\"1\">Yes<br>"; echo "</form>";
By default, one of the switches is used. If the user checks another switch, I would like the form to submit itself (without having to click the submit button).
source share