There is a form
<form role="form" id="form"> <input id="log_2" type="text" name="test1" value="<?php $a; ?> "/> <input type="text" name="test2" value="<?php $b;?>" /> <button type="submit"> <a href="/2-catalog?q=Цена-₴-<?php echo $a;?> -<?php echo $b;?>">Подобрать </button> </form> How to correctly declare variables so that when values are entered into an input, the values are saved into a variable and then displayed in a link?