title: Pre-filling search query's. POST Http
body: <p>I'm trying to understand how to use query strings in URL's and trying to make some shortcuts to make my job easier. From what I've been reading here and there there are ways to pre-program a website using query parameters. I went to the website I'm interested and pulled the "search form" part that I would like to pre-fill (this is a database search, I would like to have a direct link that just pre-populates and just shows the results of the search instead of me filling it each time I look for new data).<br>
  This is from the website's "inspect source". the  part of it:</p>
  
  <pre><code>&lt;form id="partInquiry" name="partInquiry" action="PartInquiryForEdit.htm" method="post"&gt;
          &lt;table style="width: 40%"&gt;
              &lt;tr&gt;
                  &lt;td colspan="2" align="left"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="ez1"&gt;
                  &lt;td class="label"&gt;Search By:
                  &lt;/td&gt;
                  &lt;td class="input"&gt;&lt;select id="searchby" name="search"&gt;
                          &lt;option value="part_number"&gt;Part Number&lt;/option&gt;&lt;option value="part_description"&gt;Part Description&lt;/option&gt;&lt;option value="rdo_gpl"&gt;RDO/GPL&lt;/option&gt;&lt;option value="rdo_productCd"&gt;RDO/Product Code&lt;/option&gt;
                      &lt;/select&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="ez1"&gt;
                  &lt;td class="label"&gt;Match By:
                  &lt;/td&gt;
                  &lt;td class="input"&gt;&lt;select id="matchby" name="match"&gt;
                          &lt;option value="matches"&gt;Exactly Matches&lt;/option&gt;&lt;option value="contains"&gt;Contains&lt;/option&gt;&lt;option value="startsWith"&gt;Starts With&lt;/option&gt;&lt;option value="endsWith"&gt;Ends With&lt;/option&gt;
                      &lt;/select&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="ez1"&gt;
                  &lt;td class="label"&gt;Search For:
                  &lt;/td&gt;
                  &lt;td class="input"&gt;&lt;input id="searchfor" name="searchString" type="text" value="" maxlength="750"/&gt; &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="ez1"&gt;
                  &lt;td colspan="2"&gt;&lt;input type="submit" onclick="clearSession();"
                      value="Submit"
                      class="Button" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;input type="submit"
                      value="Cancel"
                      class="Button" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  
          &lt;BR&gt;
          &lt;BR&gt;
  
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;label class="errorBox" id="errorBox"&gt;&lt;/label&gt; 
                      &lt;table&gt;
                          &lt;tr&gt;
                              &lt;td&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt;
                      &lt;table&gt;
                          &lt;tr&gt;
                              &lt;td&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt; &lt;input type="hidden" id="rowsToAdd" name="rowsToAdd" /&gt; &lt;input
                      type="hidden" id="rowsToRemove" name="rowsToRemove" /&gt; &lt;input
                      type="hidden" id="rowsToSubmit" name="rowsToSubmit" /&gt; &lt;input
                      type="hidden" id="isExport" name="isExport" /&gt; 
                      &lt;table&gt;
                          &lt;tr&gt;
                              &lt;td&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt; &lt;/td&gt;
                  &lt;td&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  
  
  
          &lt;BR&gt;
          &lt;BR&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>I tried the following to no avail and I dont know how else to do it:</p>
  
  <pre><code>?search=part_description&amp;searchby=part_description&amp;matchby=contains&amp;match=contains&amp;searchfor=MYSEARCHSTRING&amp;searchString=MYSEARCHSTRING&amp;Submit
  ?search=part_description&amp;match=matches&amp;searchString=MYSEARCHSTRING&amp;Submit&amp;submit
  ?searchby=part_description&amp;matchby=matches&amp;searchfor=MYSEARCHSTRING
  </code></pre>
  
  <p>I'm not sure I'm understanding how to do this or if maybe there's somewhere in the code where It disables this (and how would I find it?). As shown, I tried using the "names" but nothing, I also tried using the "id"s but nothign either. Also I dont know how to actually "submit" the search since the submit button has no id or name. only an "onclick" and a "value".</p>