PassMark Logo
Home » Forum

Error Inserting Search Code Into Larger Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • christi
    Junior Member
    • Oct 2010
    • 8

    #1

    Error Inserting Search Code Into Larger Page

    I'm trying to use the code given in the user manual to insert a search box into each page of our intranet site (slightly amended to suit our directory structure):
    <form method="GET" action="search/search.asp">
    <input type="text" name="zoom_query" size="10">
    <input type="submit" value="Search">
    </form>
    When I try to do a search I get the following error:
    404 - File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    I swear "search.asp" exists in the "search" folder directly below the file with this code in it. Can anybody help me figure out why this might be messing up?

    Thanks a bunch.
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    Try using the full URL to the search.asp script.
    <form method="GET" action="http://www.yoursite/search/search.asp">

    Comment

    • christi
      Junior Member
      • Oct 2010
      • 8

      #3
      I did try that but with no better luck. :/ I even tried reinstalling as CGI and doing it that way but it still says it can't find the file. I know it's the right path because the browser will let me go to the search_template.html in that directory - it just won't search via the HTML form. Works fine when I use the default search page provided by Zoom, though.

      I'm on Windows Server 2008 if that makes any difference. Any ideas?

      Comment

      • christi
        Junior Member
        • Oct 2010
        • 8

        #4
        Strangely, switching to PHP seems to have solved this problem.

        Comment

        • David
          Administrator
          • Dec 2004
          • 4714

          #5
          Maybe ASP was not enabled on your server, and PHP is?

          Comment

          Working...