PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

template.html shows up empty

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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


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

      Comment


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

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

        Comment


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

          Comment

          Working...
          X