So as usually I put in information in the url leading towards another page like this:
<form action="index.php?type=question">
<input class="log-btn extra" type="submit" value="Home">
</form>
Usually it always works, I even copy pasted it because I've used the exact same url before and on the other page it works but doesn't on this one it just returns empty after the questionmark like this:
index.php?
When you want to misuse a Button as a link with URL query parameters you can do it in two ways.
In your example you try to set query parameters in the
action
attribute of theform
. That is working as long as themethod
is notget
, because get-parameters and URL query is exactly the same thing and submitting the form will overwrite the query with the get parameters of the form elements.You can also set
<form method="get">
and use a button: