I have a simple form field with two different radio select field:
<form method="get" id="searchform" action="<?php $btn_link; ?>">
<div class="alternativ-suchefeld">
<div class="radioboxarea">
<input type="radio" name="buttonname" value="value_button_1" checked>
Button 1</div>
<div class="radioboxarea">
<input type="radio" name="buttonname" value="value_button_2" >
Button 2</div>
<input type="submit" id="searchSubmit" value="Search" />
</div>
</form>
If I'm choosing "Button 1" and submit, the action link "$btn_link" should be "link1.php". If "Button 2" is selected, the action link should be called "link2.php".
Has someone an idea, how to realize this ? Thank you!