views:

327

answers:

3

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?

A: 

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.

Kosi2801
This will break bookmarking, link sharing and all the other things that make GET useful.
David Dorward
A: 

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.

Virat Kadaru
This violates the principle of progressive enhancement.
David Dorward
Yes, javascript is good idea. The system on which I'm working on is using jQuery, and tay to use the "submit(fnc)" function which callback function parameter is eventObject, but through this object 'm accessing only the eventTarget which is the form.
bozhidarc
+2  A: 

Remove the name from the submit input.

David Dorward