I have the following lines:
if(isset($_GET['search'])){
$search_query = $_GET['user_query'];
The problem is that I am not trying to retrieve the get variable from this page, but rather from searchPage.php, which is a currently different page located within the same folder. So I would it to get the user_query variable from that page instead. Where for instance, in that page I have:
searchPage.php?user_query=microsoft&search=search
If you need any clarification, let me know.