I need code written that would populate a search, probably Google, with search terms that are input by a user's click on a separate list of words. For example, imagine a list including the terms "Spain, Germany, England, castle, sunny, rainy." The user clicks Spain, castle, rainy, and Google searches for those terms.
I must be able to alter the code so that each of the words in the list inputs what I need it to input. For example, I will code the word Spain to search for 'Espana', castle to search for 'castillo', etc. so that when the user clicks on the English search terms, the foreign language search terms are actually input as the search.
Of course the user will have to be able to add as many or as few search terms to the list before choosing to search.
Search results should appear on my own website using Google's API, and redirect to the destination site in a new window only after clicking through one of the results.
If the list of words could be made to look like a tag cloud, rather than just a list, so much the better.