I have a variable $search in a php file which I use to query an API feed. This file has a form, but by default the variable $search is returning the product I have specified, e.g. $search = "laptop";
Now I want to create a couple of pages with the same template but I want to call a different product for each page. I know that I have to use php include, but how can I override the varibale $search with a different product? I've tried the below, but it's not working.
$search = "ipad";
Thanks for your help,