Last active
December 16, 2018 12:07
-
-
Save new5558/6cd3864dca9806c17aa555a6eb322e88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Search</title> | |
</head> | |
<body> | |
<img src="https://www.ionos.ca/digitalguide/fileadmin/DigitalGuide/Teaser/google-search-t.jpg" width="300" height="150"> | |
<form method="GET"> | |
<strong>type your search message here</strong> | |
<input type="text" name="q" maxlength="2083" required="true"><br> | |
<input type="submit" value="search google" name="google-search-btn" formaction="https://www.google.com/search"> | |
<input type="submit" value="search bing" name="bing-search-btn" formaction="https://www.bing.com/search"> | |
<input type="submit" value="search duckduckgo" name="duckduckgo-search-btn" formaction="https://duckduckgo.com"> | |
</form> | |
<p>This is universal search website</p> | |
<p>From this page you can search from many search engine with their get method, including</p> | |
<ul> | |
<li>Google</li> | |
<li>Bing</li> | |
<li>Duck Duck Go</li> | |
</ul> | |
<p> Note : I try to reverse engineer the search button by copying their get request url from 3 websites : google.com/search?q= , bing.com/search?q= ,and duckduckgo.com/?q= </p> | |
<p> And for making multiple submit buttons, i use the method suggested on stackoverflow < input formaction="action url"></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment