I am trying to include a <?php echo urlencode($term);?>
tag that works well across every page on my website, but I need to figure out how to make it function inside an existing PHP script that is in the same page.
Below is the example that I am trying to fix. This way the RSS feed will track the keywords that were used in the search automatically.
<?php
// output RSS feed to HTML
output_rss_feed('https://www.speedyfind.net/search/feed.php?Terms=<?php echo urlencode($term);?>', 6, true, true, 200);
?>