I have a clientvendor.php file with various filters in it. This file directs to updateclientvendor.php file.
Now updateclientvendor.php has a Back button to go back to clientvendor.php . When the back button is pressed, I want the page to go back and display the filtered information which is not displayed when i use header( 'Location: clientvendor.php' ).
How can i store the contents of the filtered page when pressing back button !
I am filtering clientvendor.php based on 2 parameters : SelectType and SelectStatus. And then the user has to press Filter button to get the effect !
I think this could be a possible option !
In updateClientVendor.php save the filters and modify the link of the back button to send the filters back to the previous page (on the URL as GET params, i.e. clientvendor.php?filter1=&filter2=) when they go back.
My appraoch : (UpdateClientVendor.php)
$filtertype =$_POST['SelectType'];
$filterstatus =$_POST['SelectStatus'];
if(isset($_POST['Back']))
{
//URL ... So What should the URL be?
}
What should the URL be?