I am working on a project in which user can search anything. I want to show search data in encrypt form in URL. I create a form and when user submit it I send user to result page, which I define in form action and form method is get.
<form is="search" action="example/search.php" method="get">
<input type="text" placeholder="Search..." name="key" id="header-search" />
<button class="submit"></button>
</form>
I need to show encrypt data in URL. If I encrypt data using java script then I can't get the data using PHP. How can I send data in encrypt form in URL and get in php in other page.