PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Two search forms one page - different link back URLs

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

  • Two search forms one page - different link back URLs

    I'm stumped on this one. . .
    Recently changed my linkback URL on the Advanced tab from mysearch.html to mysearch.php

    On most of my pages, I have a single search form and all is fine. I have one page - an Advanced Search page - that has two search forms: the usual one that's part of the site layout and a second Advanced Search form.
    Please refer to page:
    http://www.icdmeister.com/raf/search...ced_search.htm
    "fibroid" is a good test search term

    When I search from the first search form (upper left corner), my results are on the mysearch.php page as it's supposed to be. When I search from the second, Advanced Search form, the results are on the mysearch.html page not the mysearch.php page.

    Here's the relevant source code:
    Code:
    <form method="get" action="http://www.icdmeister.com/raf/search/mysearch.php">
    	<input id="zoom_query1" name="zoom_query" size="12" />
    </form>
    
    <form method="GET" action="http://www.icdmeister.com/raf/search/mysearch.php">
    <input type="text" name="zoom_query" size="33">
    </form>
    Could the problem be related to have two components that both have the same name="zoom_query"? This seemed to work properly when I was using the mysearch.html instead of the mysearch.php link back URL.

    Possibly related, possibly not. Not all of the categories are working properly from the Advanced Search form (ie. searching for thyroid in the Endocrine category gives no hits).

    Hope you can point me in the right direction to fix this.

    Thanks,

    Andrew

  • #2
    Your advanced search form is still pointing to "mysearch.html". You can see this on the "advanced_search.html" page, if you "View Source", there's the following bit of HTML:

    Code:
    <div class="iphonehead">
      <ul>
          <li>
        <img class="icon" src="http://www.icdmeister.com/images/left-arrow.png" title="Back" onClick="history.back(-10)" alt="Back" /></li>
          <li><a href="http://www.icdmeister.com/raf/index.htm">
            <img class="icon" src="http://www.icdmeister.com/images/home.png" title="Home" alt="Home"/></a></li>
          <li class="form">
          [B][COLOR=blue]<form method="get" action="http://www.icdmeister.com/raf/search/mysearch.html">[/COLOR][/B]
          <input name="zoom_query" size="17" class="iphonesearch" /> 
          </li>
          <li><a href="http://www.icdmeister.com/raf/info.htm">
        <img class="icon" src="http://www.icdmeister.com/images/info.png" title="Info" alt="Info" /></a></li>
          <li>
        <img class="icon" src="http://www.icdmeister.com/images/right-arrow.png" title="Forward" onClick="history.forward(10)" alt="Forward" /></li>
      </ul>
    </div>
    See line in bold blue.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment


    • #3
      What you suggested worked to fix the problem. Thank you. But now I'm really confused.

      So there are three search forms on the page technically. The one you pointed out was within the "iphonehead" div which only displays on iPhones. It wasn't visible from the browser I was using so don't know why it would effect anything.

      The action of the form that's displayed on the Advanced Search page was already set to mysearch.php. Why would changing the action URL of the iPhonehead search form matter when I wasn't even seeing that particular search form displayed on the page?

      The problem's fixed - now I just want to understand the behavior.

      A.

      Comment


      • #4
        The <form> that's inside the "iphonehead" div is missing a closing </form> tag.

        This means the <form> that appears in "iframed" AFTER the "iphonehead" div is being encapsulated within the "iphonehead" form. So the <form> tag that appears within "iframed" is being ignored by the browser.
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment


        • #5
          Genius! NOW I understand.

          Thanks a million.

          Andrew

          Comment

          Working...
          X