bozhidarc
bozhidarc

Reputation: 854

How to remove get param on form submit?

Can you advice me how to remove get parameter (input text) without removing the value of the input or disabling it? Is this possible at all?

Upvotes: 2

Views: 4932

Answers (3)

Quentin
Quentin

Reputation: 943510

Remove the name from the submit input.

Upvotes: 6

Virat Kadaru
Virat Kadaru

Reputation: 2256

You can place the text field outside the form

OR

you could use Javascript and remove that particular parameter before sending the request.

The javascript method will give you more flexibility.

Upvotes: 0

Kosi2801
Kosi2801

Reputation: 23095

The easiest way would be to switch to the POST method when submitting your form. This way the parameters aren't passed by the Url anymore but rather in the HTTP header which is not visible.

Upvotes: 0

Related Questions