This doesn’t go to the URL http://example.com/a.php?r=1&go=1. Instead it goes to http://example.com/a.php?go=1 .
<form method="GET" action="a.php?r=1">
<input type="radio" name="go" value="1">
</form>
Even if I clear action="" it again goes to the same wrong URL. How can I include the r=1 in the URL of the form submission?
When you use
method="get", you can’t put values in the query string of theaction. They will be replaced by the values from the form fields when you post the form.Put the values in hidden fields instead: