Show search term on results page
Is it possible to show the term(s) or keyword(s) that has been searched for on the search results page?
Is it possible to show the term(s) or keyword(s) that has been searched for on the search results page?
you would need to change the extesnion of the results from .html:
bing_resultspage.html
to .php:
bing_resultspage.php
also, change the action of the form on the serch page to use the new extension:
<form id="BingSearchForm" name="BingSearchForm" method="get" action="bing_resultspage.html">
to:
<form id="BingSearchForm" name="BingSearchForm" method="get" action="bing_resultspage.php">
then you can add the following code to the results page:
You Searched for: <?php echo((isset($_GET["Bing_query"]))?$_GET["Bing_query"]:"") ?>
Looking to incorporate the same on my results page.
Where is the value 'Bing_query' sourced from? The search page? if so, where in the code please?
I'd have to see your search and results page to comment on how to do this. The easiest universal way would be to save the search entry into the session and then use that to display it.
This post has been deleted.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.