Reputation: 3
In one of my page, where it is a form with GET method, I would like to pass a further parameter by URL: The form give a value to 'cat' and 'loc' but I have to pass even the parameter 'page' without put it as a value of the form because it is always the same. I'd like to have, after I've pressed the button, this URL:
http://localhost/index.php?page=result&cat=1&loc=1
I've try
http://localhost/index.php?cat=1&loc=1 without 'page' parameter.
How can I do?
Upvotes: 0
Views: 238
Reputation: 145512
I would guess that you are looking for a hidden form field:
<input type=hidden name=page value=result>
Thus it would not display like the other form fields, but be present when you press the submit button.
Upvotes: 1