There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Search Form for Website


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
web_princess24's Avatar
Junior Member with 4 posts.
 
Join Date: Feb 2002
Location: Davenport, IA
09-Jul-2002, 04:12 PM #1
Search Form for Website
I am trying to build a search form for my website. I only want it to search the pages that are within my site, not anything outside of it. Does anyone have a clue how to do this???

Thanks!
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
09-Jul-2002, 04:50 PM #2
Hey princess,

What would be the search parameters you would be looking for? Would you just want to do a name search like intel and it would pull up www.intel.com

There are many ways you could do this, but standard HTML won't do it for you. You need a database you can search against and a web interface that can access a database like ASP, PHP or something similar. Your ISP also needs to support these formats.
__________________
**Disclaimer** Anything below this line ^ is part of my signature for those that may be confused

Sadly, there are no integers on this scale, so your gangly adolescent attempt to be clever has proved futile....Dieter

I have the right "NOT" to be tolerant of others because they are different, weird, or tick me off.....Parody of Andy Rooney

There are no stupid questions, but there are a LOT of inquisitive idiots.
Snake~eyes's Avatar
Senior Member with 639 posts.
 
Join Date: Apr 2002
09-Jul-2002, 09:10 PM #3
^^^^^^^^^^^^

does your server support php/asp?

If you're server only supports html then this would be impossible.

BUt if you support PHP i think I might beable to help.

If its ASP you're after then you're outta luck
web_princess24's Avatar
Junior Member with 4 posts.
 
Join Date: Feb 2002
Location: Davenport, IA
10-Jul-2002, 09:46 AM #4
Yes, the server supports PHP and ASP. I have been trying to work with the search function within FrontPage 2000 (not by choice mind you ) I am having no luck with it at all!

What I want to do is have someone come to the site and be able to search for other pages within the same site, nothing outside of it. I have seen companies that will do this for you (Pico.com for example), but this is a very simple website and I really don't want to have to pay for a solution if I can code it myself.

Thanks!!!!!
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
10-Jul-2002, 10:09 AM #5
Unless your pages code is indexed by either a database or by some other method you can't do it. A lot of sites use a seach engine that runs behind the scenes (like Infoseek) and indexes every web page on the web site. I think there is a way with ASP to use the FileSystem object and parse all the html to text. I am not sure how you would search with that method though. If you put all of the content minus the htnl tags into a database it would be very easy to search and return a URL. How big is your web site that you would need a search feature on it anyway??
__________________
**Disclaimer** Anything below this line ^ is part of my signature for those that may be confused

Sadly, there are no integers on this scale, so your gangly adolescent attempt to be clever has proved futile....Dieter

I have the right "NOT" to be tolerant of others because they are different, weird, or tick me off.....Parody of Andy Rooney

There are no stupid questions, but there are a LOT of inquisitive idiots.
Snake~eyes's Avatar
Senior Member with 639 posts.
 
Join Date: Apr 2002
10-Jul-2002, 10:32 AM #6
heeres a php tutorial for that over at spoono
http://www.spoono.com/tutorials/php/search/
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
10-Jul-2002, 10:53 AM #7
That would be assuming she was running MySQL on the server. It still doesn't give you the ability to search web pages, only the contents of a database and all of the thml minus the tags would have to be manually entered into it.
Snake~eyes's Avatar
Senior Member with 639 posts.
 
Join Date: Apr 2002
10-Jul-2002, 01:25 PM #8
yes that is true.

also i bleive there are sites where you just take there code and put it on your site and it does the search for you.

I know i've seen it somewhere.

I'll look into that
ksuwyldkat's Avatar
Senior Member with 344 posts.
 
Join Date: Nov 2000
Location: KCMO
10-Jul-2002, 02:12 PM #9
I saw an article mentioning a company called Atomz, that will make a search form for you. I believe it was free if you had less than 500 pages. Here is their link www.atomz.com.

Not sure if this is true. I saw the article in this months pcworld.
Here is the link to the article

It is the Hidden gems page.
__________________
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
Eric Porterfield.
Snake~eyes's Avatar
Senior Member with 639 posts.
 
Join Date: Apr 2002
10-Jul-2002, 04:01 PM #10
yah that looks good

i knew there were sites like this.

cool.. ima bookmark that
web_princess24's Avatar
Junior Member with 4 posts.
 
Join Date: Feb 2002
Location: Davenport, IA
12-Jul-2002, 05:02 PM #11
Thank you everyone for all of your help! I have looked into Atomz and it seems like it might be the way to go. This is just a small site with not even 200 pages, but it has to be searchable because of the contents on the site.

Thanks again for all of the help!!!!!
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:14 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.