1) pagentation
2) when you hit refresh or your back button it does not say you have to resubmit your post data
What I did is this:
Code: Select all
if (0 === count($_POST))
{
$_POST = unserialize(base64_decode($_SESSION['_POST']));
}
else
{
$_SESSION['_POST'] = base64_encode(serialize($_POST));
$this->Redirect('Search', array('Action' => 'Search'));
}
//build everything off of the $_POST now to make your query
//after executing your query, do this:
$_SESSION['_POST'] = base64_encode(serialize($_POST));Question is though, is this a bad idea? Anyone see anything bad that could happen? all the $_POST stuff is cleaned and whatnot of course so thats not a problem. It seams to easy, but it gives me a bad feeling for some reason, like i am missing something here. Maybe some more eyes can let me know if they see a problem with this idea or let me know that it is a good idea