Search/Answer/Webpage, Going to a hyperlink's page by typing its name in a search box |
Search/Answer/Webpage, Going to a hyperlink's page by typing its name in a search box |
MosesB |
Oct 6 2011, 10:19 AM
Post
#1
|
Group: Members Posts: 1 Joined: 6-October 11 Member No.: 15,575 |
OK...
For a database search tool, i want be able to type a city's name in the search box and pull up the cities webpage that is built into my company's system. For exmaple... if Google was a city.. I want to type Google in the search box,(allow to be lower or upper and still pull up the same page,) hit search(or enter) and it go straight to the webpage Google.com. Can somone please explain how to do this or post code of the example so i can replicate for the website? Thanks for your help! |
Brian Chandler |
Oct 7 2011, 07:14 AM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
Well, you need a database with two columns, one being the name of a city and the other the corresponding URL. Then it's elementary db programming to look up the url on the city name, and redirect to it.
Of course, it's hard to see the point of all this. Why can't I just type "San Francisco" into Google? |
Frederiek |
Oct 7 2011, 09:53 AM
Post
#3
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
QUOTE if Google was a city... I want to type Google in the search box and QUOTE pull up the cities webpage that is built into my company's system That's not the same as simply typing "San Francisco" into Google. |
Brian Chandler |
Oct 7 2011, 11:54 AM
Post
#4
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
QUOTE if Google was a city... I want to type Google in the search box and QUOTE pull up the cities webpage that is built into my company's system That's not the same as simply typing "San Francisco" into Google. No, that's true of course. But if there is just a list of pages for cities, why not simply list them as links? There are bound to be marginal cases, where people are not sure if their own city merits a page... |
Lo-Fi Version | Time is now: 17th April 2024 - 09:35 PM |