Need a Search Form for Website

Discussion in 'Programming' started by jen03, May 18, 2009.

  1. #1
    The website I'm working on needs a search form. Here's the form code from the template:

    How can I revise this so that it works or can anyone give me/direct me to a search form script that will work? I need the form to search within the site for keywords (and then display the results).

    Thank you~
     
    jen03, May 18, 2009 IP
  2. MTExpert

    MTExpert Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The form is straight forward enough. The html is correct.

    You just need to put the script that will handle the request inside of the
    action=""
    Code (markup):
    As an example:
    action="search.php"
    Code (markup):
    The search.php script will be sent the search term entered when the ok.jpg image is clicked, but you need to tell it what to do with that term afterward.

    There are many pre-made search scripts available across the internet but depending on if you have a content management system like PHPnuke, Wordpress...etc, you might want to look into how to use their built-in search functions.
     
    MTExpert, May 19, 2009 IP