Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create a SEARCH in a webpage using html 2

Status
Not open for further replies.

jhoann

Programmer
Apr 18, 2002
81
PH
hi,

i want to create html wherein I could search the name of the employee for example in the input box ... the user will type the name that he wants to search then will click the SEARCH button.

then the result will come out ...

can you please give me a simple example...

Please help.

thanks!

 
So many ways of doing that...
1) Using coldfusion and a database...
2) Using ASP and a database...
3) Using JavaScript...
4) Using CGI (I think)...
Can you use coldfusion with database?? I have not failed; I merely found 100,000 different ways of not succeding...
 
hi,

I want to use html...can it be done? if not maybe javascript... can you show me how please .......
 
A search of a site? or a page?
Not likely that it is feasible. The problem is, the search needs a database to read the info from or search from.
So if it were possible with standard html, the search would have to physically go thru each page to find anything matching the search preferances. Could take a long time.
CGI uses a flat database file to store the relevant portions of pages to its own file and the search uses that to find what is called for. That requires updating the search text file. Usually the program has an automated way of doing that.
A PHP or asp search is probably the most efficient, but also the toughest to setup.
All depends on what you want to do. My preferance is a search.cgi program.

Here is one in javascript, just copy and paste it into a file.
Instructions are with it.

Have fun.
 
hello,

Thanks Dirtrocker!

Yes you're right .... what I really want to do is having a search page ... but no database. Like you've said It will go thru each page physically.

for example :
In the input box ... the user will type the name that he wants to search then will click the SEARCH button.
if he types ROGER ... the page which contains ROGER will appear ... can it be done ... can you help me and show me how... thanks a lot.



 
Sure it can be done, anything can be done if you set your mind to it...
Use this: this is a self site serach engine I created using JS...all you need to know on how to use it is written there, and if you need any further assistance, just email me, or post here ok?? faq216-1332 I have not failed; I merely found 100,000 different ways of not succeding...
 
hi,

Thank you very very much.... it helps a lot :)

God bless and more power!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top