Basic HTML Website: Need To Include A Search Feature..

Discussion in 'HTML & Website Design' started by Capricious, Oct 24, 2008.

  1. #1
    Hello,

    I've made a really basic HTML website to sell a load of rare textbooks and novels to students in the UK.

    I was going to list the books on alphabetical pages (O = Orwell, T=Twain etc) but I think it would be much easier to just have a search box which will search through my list of books and produce results on a single page.

    Is there an easy, free way to do this?

    Example:

    User types in 'George Orwell' into search box on the front page.

    They are directed to a new page which displays the results;

    George Orwell - 1984 - In Stock
    George Orwell - Animal Farm - In Stock
    etc

    and keep the style of the site.

    Ideas and advice much appreciated..

    Thanks,
    Jay
     
    Capricious, Oct 24, 2008 IP
  2. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #2
    You need PHP and a database. Throw all the books in a database, put a form on your page, and allow people to search for titles, authors, etc. You should also provide facilities which'll allow people to browse by category and author.

    Sorry, I can't explain it in more detail right now. I have to run. Maybe someone else'll elaborate.
     
    Masterful, Oct 24, 2008 IP
  3. MikeHayes

    MikeHayes Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    I guess you could keep it simple and have an "A" page, a "B" page etc. where people can link to and search visually when they get there?

    Good luck.

    Mike
     
    MikeHayes, Oct 25, 2008 IP
  4. aap

    aap Well-Known Member

    Messages:
    1,802
    Likes Received:
    39
    Best Answers:
    2
    Trophy Points:
    120
    #4
    You can use Google search for your website.. and thus can make some money also.
     
    aap, Oct 25, 2008 IP
  5. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Where are you storing the data? in case its a mysql database then you can use php as the frontend.
    For a search, just a couple of mysql queries in php would do the trick for you.
     
    maestria, Oct 27, 2008 IP