I have to pass a parameter in url. I can't send it in as usual GET request the variable and value is shown in the address bar with the request. So, the end user can change the value for this variable value and send request which will be processed.
href="url=/admin/usermanagement/?flag=2
I want to send this hiding flag=2
now this goes as a GET request and it is seen in the address bar. Please give your suggestion if you have any idea on changing this to POST to hide and send the value.
You can use AJAX to get rid of forms entirely.
Just add this to your JavaScript:
Then call with something like this:
Note that this will NOT reload the page. If you want to reload the page, use Borges' answer.
You can still use a html form but "hide" it from the user:
And the view: