polyfragmented Wrote:How can I fetch entered search terms so I can display them with the results?
Example: You searched for the term(s) 'administration'
And how can I programmatically include the text? Our search page is a (deliberately) visible page which can be found in the sitemap and search. If the user arrives on the page from the search form, I'd like to include above text.
Code:
<?php if (@$_REQUEST['words']) { ?>
You searched for the term(s) '<?php echo htmlspecialchars($_REQUEST['words']); ?>'
<?php } ?>
If you need in in the content of a page, you can use the DynPages plugin to include this code in a component.