i've created a very simple php site which has a search box in it and several buttons. Depending on which button i press, i'd like to forward that search to a different page, e. g. google or bing. (So when the button for google is clicked, a google page should appear that shows the correct result, so I go to https://www.google.de/search?q=[input]
. That information is stored in a database.)
Question is, would you generally use php to do that kind of stuff (if so, how?) or would you use javascript (using window.location.href
)?
thanks in advance