I need a search box that opens the target page directly

Discussion in 'HTML & Website Design' started by fiasco, Mar 27, 2006.

  1. #1
    I need to set up a search box so that when a user enters a stock symbol - like GOOG, let's say - when they press enter it opens the relevant page on my site, rather than list the search results. If no page exists, they get a page cannot be found message. I don't know what this is called, but it doesn't seem to be a feature in the site search engine software scripts I have seen, can someone direct me in the right direction.
     
    fiasco, Mar 27, 2006 IP
  2. Tam

    Tam Peon

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't want to sound cynical, but that sounds bad for SEO.

    Most if not all site search scripts offer to show a little 'No results found' message if there are no ... results for a search, but putting a page not found message is mroe likely to work against you.

    However, any script that offers alternative resutls would be very good for you, and that would probably only take a little recoding of the 'No results found' message.

    Good luck with this :)
     
    Tam, Mar 27, 2006 IP
  3. Digital Artist

    Digital Artist Active Member

    Messages:
    562
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #3
    hi guys i need about x html what is the difference between x html and simple html
    thanx
    regards:)
    hamidos
     
    Digital Artist, Mar 30, 2006 IP
  4. brian394

    brian394 Well-Known Member

    Messages:
    226
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #4
    What you are describing is a very simple PHP/MySQL search page. All of the content of your site should ideally be stored in a database (MySQL for instance). When a person types in a search into your search box (GOOG for example), that word/phrase is searched for in the database (perhaps in the id or company_id field). If an exact match is found, that company's information is displayed. If no exact matches were found, a "No Results Found" message is displayed instead. You should try to read up on PHP and MySQL, a lot of really useful stuff can be done with the two and they're not that difficult to learn. Hope this helps. :D
     
    brian394, Apr 10, 2006 IP
  5. brian394

    brian394 Well-Known Member

    Messages:
    226
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #5
    Answered in another thread.
     
    brian394, Apr 10, 2006 IP