2 Replies Latest reply: Sep 19, 2007 2:21 PM by oicram RSS

    Template with a search form inside

    oicram Community Member
      Please read this post carefully:

      I need to create a template with:

      on top: Title and search form with several search options to perform the search.
      on the left: menu options.
      on bottom: signature.
      in the right side: searchresult_DIV without editable region and content_DIV with editable region.

      The point is to make a template with menus, header, footer but also with the search/result page build in. So the search can be available in all pages.

      The searchresult_DIV will appear every time the recorset_search <> 0.
      The editable region (content_DIV) will appear every time the recorset_search = 0.

      BUT, I also have an error message that, If the search is done and if recordset_search=0, shows:
      "No records Found"

      Problem:
      When the user makes no search:
      Only the content_DIV appears. Fine!

      When the user makes the search and the search found the results:
      Only the searchresult_DIV appears. Fine to!

      BUT

      When the user makes the search and no search record is found:
      The "No records Found" message AND "the content_DIV" (that is programed to show when recordset_search=0). both appear!!

      How can we make this so that, when AFTER the search performed by the user, only the record not found message appear?

      Thanks.