Jump to content

Search Bar


dmacfang8

Recommended Posts

You'll need to store the content of all your HTML pages in a database and index them by keywords and such. Then, when the user does a search, pull out URLs based on the keywords typed in by the user.

 

It's not a simple system to implement.

 

If you just want to search for words on the same page, you might as well let the browser do the work, people can press Control+F to find things.

  • Like 3
Link to comment
Share on other sites

Usually the website content along with html is stored in a database, you then use the inputed search criteria to search the database fields that hold the content you wish to search for this specific input search critera string value, usually using SQL 'LIKE %'.$search_string.'%'.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...