Forums / Setup & design / Forms errors !!!

Forms errors !!!

Author Message

Selmah Maxim

Sunday 05 February 2006 2:04:19 pm

Hi ...

The form ignoring the action ... and I get error in the debug !

The template :

<form action={"/content/search/"|ezurl} method="get">
      <table width="180" border="0" cellpadding="0" cellspacing="8">
        <tr>
          <td class=td2>Search By Year </td>
        </tr>
        <tr>
          <td><input class="input" type="text"  name="SearchText" id="Search" value="" />
              <div class="smallbr"></div>
              <input class="submit" name="SearchButton" type="submit" value="Search" />
              <input type="hidden" name="class_id" value="20" />
              <input type="hidden" name="SearchContentClassID" value="208" /></td>
        </tr>
      </table>
    </form>

The Html output


<form action="/index.php?/site/content/search" method="get">
      <table width="180" border="0" cellpadding="0" cellspacing="8">
        <tr>
          <td class=td2>Search By Year </td>
        </tr>
        <tr>
          <td><input class="input" type="text"  name="SearchText" id="Search" value="" />
              <div class="smallbr"></div>
              <input class="submit" name="SearchButton" type="submit" value="Search" />
              <input type="hidden" name="class_id" value="20" />
              <input type="hidden" name="SearchContentClassID" value="208" /></td>
        </tr>
      </table>
    </form>

The error :

</code> Could not find module named 'SearchText=&PhraseSearchText=&SearchContentClassAttributeID=202&SearchDate=-1&SearchButton=Search&SearchContentClassID=16'
These directories were tried none of them exists:
kernel/SearchText=&PhraseSearchText=&SearchContentClassAttributeID=202&SearchDate=-1&SearchButton=Search&SearchContentClassID=16
</code>

Please .. any idea what wrong here ?!

Selmah Maxim

Sunday 05 February 2006 2:05:48 pm

just fogot to say the also the url is wrong after submit the search :

http://www.xxx.com/index.php?SearchText=x33s&PhraseSearchText=&SearchContentClassAttributeID=202&SearchDate=-1&SearchButton=Search&SearchContentClassID=16