I have revised my code. My issue now is the following:
The session is set on the results page as follows:
Trigger: before page load
Session Name: searchFieldValueMobi
Value: <?php echo $_POST['searchField']; ?>
If I search for "a" it brings back 42 pages of results and displays properly: "a" resulted in 42 pages
But, as soon as I click one of the page numbers, it wipes out the session variable since it is looking to load in the $_POST['searchField'] before page load which is now empty.
Is there any way to get around this?
attached code is revised
Live link has been updated as well: searchPOST.php