Using a hyperlink to submit a search query
I have a form that submits a search query (I enter the search term and click submit). That is working just fine. However, what I need now is to submit that same search term using a hyperlink on a webpage instead of the form. For example, instead of entering "Widgets" in the search form, I provide a "Widget" hyperlink on my webpage.
So, on my index.php page I would have something like this"
When someone clicks on that link, it submits the search term "Widgets" just as if it had been manually entered in a search form and I clicked "submit". How can I accomplish this?
<p>Explore the wonderful world of <a href="something">Widgets</a></p>