PassMark Logo
Home » Forum

template.html shows up empty

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shrubbery
    Junior Member
    • Jan 2007
    • 5

    #1

    template.html shows up empty

    I've included the search form in my sidebar and changed the post to my custom template.html file. When I search for something only the search form shows up in the results page, with no results.

    If i then search again using the search form on the results page, i get a perfect set of results.

    As far as I can see, both forms are pulling up the right page, but only one shows results. www.bushbreaks.co.za if you'd like a look.

    Thanks.
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    This is the code you need for adding a search box to your home page or side bar.

    <form method="get" action="search.php">
    <input type="text" name="zoom_query" size="20" />
    <input type="submit" value="Search" />
    </form>

    But this the input line from your current HTML
    <input type="text" name="search_criteria" value="Search for keyword" />

    The 'name' field must be "zoom_query"

    Comment

    • shrubbery
      Junior Member
      • Jan 2007
      • 5

      #3
      Thanks. I tried that, but it didn't work. Still having the same problem.

      Comment

      • David
        Administrator
        • Dec 2004
        • 4714

        #4
        This is your current code,
        <form name="search" method="post"....

        Change the method to "get", as per our example.

        Comment

        • shrubbery
          Junior Member
          • Jan 2007
          • 5

          #5
          Thanks. That fixed it. Appreciate your help.

          Comment

          Working...