I am developing a web application. There are several users in this application.
All users can see and use the search form - however, only those who are logged in can submit the form properly.
So, when the form is submitted - BEFORE going to the results page and showing the results, the jquery ajax function is launched, it checks if the user is logged in, and if the user is logged in, window.location.replace('searchresults.php') to the page search results.
How can I make sure that the correct POST data (from the form input fields) is included in the redirect?
source share