When to use GET or POST ?

–>If the processing of a form is idempotent(i.e. it has no lasting observable effect on the state of theworld), then the form method should be GET. Many database searcheshave no visible side-effects and make ideal applications of queryforms.––>If the service associated with the processing of a form has sideeffects (for example, modification of a database or subscription toa service), the method should be POST.