I have a Perl CGI program in which I designed an HTML form. If somebody clicks on a button in this form, a CGI/Perl subroutine in this file is executed. Because I have more than one buttons in the form, I set their types as "Button", not "Submit".
This is a bookstore website, I have three buttons each for a kind of books (for example, my buttons are: "science fiction", "fiction" and "poem"). and I have to use buttons. After clicking each button, a list of books of that kind is presented and the user can select the books. I should not use javascript: it should be controlled by CGI.