How I make search criteria appear after search results appear, to the search form for new search using as a guide previous criteria , how make in javascript and how in PHP ?