Save data for a search on a page

0

I have the following situation: I have a simple PHP page where I have a search filter that allows me to search for Status, CPF / CNPJ, Company Name / Full Name, Start Date and End Date. After running the search, the system brings me back into the datatable of the database. So far so good, the problem is this: if I edit or delete some information from this table, when I return to this same page, I lose the search information and consequently it is necessary to retype everything so that I can have that data again. I wonder if anyone knows of any way to save the data from this survey? I thought about saving this search data within sessions, would it be the best way out? If yes, would you like to execute the action of the search form within this same page or would have to leave it too, call a new page to save the data in the session?

    
asked by anonymous 17.03.2018 / 16:03

1 answer

0

Try to use setcookie("name","value",time()+$int); and $_COOKIE["name"] It's simpler to guess.

    
19.03.2018 / 04:42