Help needed to add RSS subscription button to 'Search Result

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mojoflyer
Forum Newbie
Posts: 1
Joined: Wed Sep 02, 2009 8:20 am

Help needed to add RSS subscription button to 'Search Result

Post by mojoflyer »

Hi all, i want to add an RSS subscription button to my "Search Result" page.

For example, after a user run a search for specific term, e.g "cats and dogs"

My site's search result page url will become...
' http://www.mysite.com/?s=cats+and+dogs '

Now what i want to achieve is to add a RSS subscription button at the bottom of this search result page with the targeted url as...
' http://www.mysite.com/?s=cats+and+dogs&feed=rss2 '

How to code it so that it will automatically grab the url of the search result page and ADD "&feed=rss2" at the end of it to bring user to the feed subscription page?
Post Reply