All developers use get and post methods for passing value. But this is not a good practice to use get() because, While we use get, the value is passed through URL, which is visible to every one. So the user can understand what all values are getting transferred to the new page.
As we all know, hackers are everywhere with their eagle eyes. So by using get() we are giving an opportunity to the hacker to get into our website.
Otherwise if we use post(), the values will not get displayed in the URL. They are passed as hidden content. So it is secure to use post() instead of get().