Porkie Posted November 11, 2009 Share Posted November 11, 2009 i want to be able to create a searchbox which links in with wikipedia, so on my website a user would type in something to my search box then theyd click search and user would be forwarded to the search result on wikipedia any help with how id do it? cheers Quote Link to comment https://forums.phpfreaks.com/topic/181181-help-with-code/ Share on other sites More sharing options...
Maq Posted November 11, 2009 Share Posted November 11, 2009 i want to be able to create a searchbox which links in with wikipedia, so on my website a user would type in something to my search box then theyd click search and user would be forwarded to the search result on wikipedia any help with how id do it? cheers All wikipedia does is append the word or phrase to the end of the URL. I'm not sure to what extent you want this search to go, but after the user enters and submits their search just redirect them to the altered URL. Search: PHP Redirect to: http://en.wikipedia.org/wiki/PHP Quote Link to comment https://forums.phpfreaks.com/topic/181181-help-with-code/#findComment-955868 Share on other sites More sharing options...
jonsjava Posted November 11, 2009 Share Posted November 11, 2009 It's not a PHP question, but here's the answer: <html> <form method="POST" action="http://en.wikipedia.org/w/index.php"> <input type="text" name="search" /><input type="submit" value="Submit"> </form> </html> Quote Link to comment https://forums.phpfreaks.com/topic/181181-help-with-code/#findComment-955871 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.