I have a quick search tab at the top of my menubar. It has an input textbox (for the content to search for) and a button. When this user currently fills in box and clicks the button the user is brought to the actual search page.
On this search page, a more advanaced set of search filters is displayed at the top of the page (with a submit button) and then the results of the search would be displayed below.
What I want to do is display the results of the basic search (from any other page, using the menubar) upon the search page loading without the user having pressed the submit button on that page. This will hopefully save time for the user (maybe the advanced search wasn't needed). NOTE: The advanced filter textbox regarding what text to search for is autopopulated by the content from the basic search textbox when the basic search button is clicked and the user is brought to the search page.
However, since I am not pressing the submit button I can't use the $_POST["searchText"] as a parameter for my if condition (which only displays search results if the user entered text in the textbox) to display the search results. Instead I would much rather user something like:
!is_null(searchText.value)
But obviously this is incorrect syntax/doesn't exist. Does anyone have a suggested solution to get the content from the HTML Input searchText into a PHP $variable?