Suppose we are on the page (no matter what) and we have in the address bar something like: https://site.com/app/backend.php?param1=abc¶m2=cde
On the page there is a form with <input name='param3'> sending which you should go to the same page, with the first two parameters + the third one should be attached to them. Those. finally, after submitting the form, we should go to https://site.com/app/backend.php?param1=abc¶m2=cde¶m3=aaa
My decision:
<? $repeatRequest = http_build_query($_GET); ?> <form class="form-inline" action="backend.php?<?=$repeatRequest?>" method="get"> <div class="form-group"> <label>Страница: </label> <div class="input-group"> <input type="text" name="param3" class="form-control" size="2" value="<?=$_GET['offset']/20?>"> <span class="input-group-btn"><button class="btn btn-default" type="submit">перейти</button></span> </div> </div> </form> But ultimately we get to https://site.com/app/backend.php?param3=aaa
What is the trouble and how to fix it?