The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Search/Answer/Webpage, Going to a hyperlink's page by typing its name in a search box
MosesB
post 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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post 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?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Oct 7 2011, 11:54 AM
Post #4


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE(Frederiek @ Oct 7 2011, 11:53 PM) *

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...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 04:08 AM