I am working on a search box. So far, I am able to search and redirect to Google with the correct XML output. However, I don't want to redirect the URL, but show the produced XML where my search box is placed.
Currently, My search box is located on search.php
and after clicking search it redirects me to google with XML output. I want to stay on search.php with produced XML.
I researched that Iframe could be useful, but I just want to know the best way to achieve the solution in context of PHP.