PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Still stumped on search results template with SSIs

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

  • Still stumped on search results template with SSIs

    Just bought the prof edition, first time using it...Here's where I'm at (I'm not a programmer for starters)...

    Building a new site for a client and I've created a simple search form within the header SSI on every page: http://www.warestar.com/new/index.php

    With this on every page, I don't feel the need for a seperate search page.

    The form action is currently calling "http://www.warestar.com/new/zoom/search.php". Type in "jib" to test.

    I want the search results to be displayed on a template that utilizes the layout shown here. I'll tweak css later.

    I understand that if the form is currently calling search.php, then data will be posted to search_template.html, which I've already stripped clean presuming I will imbed that somewhere...

    So, what do I need to do get the data to post to my desired template? Any direction would be much appreciated.

  • #2
    I'm also trying to get my page with SSI and search results working properly. If you haven't checked out the FAQ yet, it's here:
    http://www.wrensoft.com/zoom/support/faq_ssi.html

    While I probably shouldn't be giving any advice here, my understanding of this is as follows:

    1) Create a new page for your search results with all the layout and SSI's ("mysearch.php" or whatever).

    2) In your "mysearch.php" page, in the place where you want your search results to show, insert
    Code:
    <!--#include virtual="http://www.warestar.com/new/zoom/search.php?${QUERY_STRING}" -->
    3) Change the search form in your header so instead of
    Code:
    <form method="get" action="http://www.warestar.com/new/zoom/search.php" class="searchform">
    you have:
    Code:
    <form method="get" action="http://www.warestar.com/new/zoom/mysearch.php" class="searchform">
    Hope this helps.

    Andrew

    Comment


    • #3
      Alright...We're getting somewhere! Thanks for your response Andrew. I had to try a few different variations, but the code below ended up working:

      <?php include("search.php"); ?>

      Thanks again!
      Brody

      Comment


      • #4
        Glad to hear you guys have worked it out. Always good to see users helping each other out!

        Just adding a correction:

        Originally posted by aschecht View Post
        2) In your "mysearch.php" page, in the place where you want your search results to show, insert
        Code:
        <!--#include virtual="http://www.warestar.com/new/zoom/search.php?${QUERY_STRING}" -->
        This method is only suitable for SHTML and not a PHP page such as "mysearch.php". Using an include() or virtual() call would be more appropriate for a PHP page. See the FAQ linked above for examples.
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment

        Working...
        X