MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Problem submitting drop-down menu form



Stanley,

Here is what I did to for a drop-down list search. Works great:

<SCRIPT language="JavaScript">
function doIt(){
location.href=document.PBNForm.Myselect.options[document.PBNForm.Myselect.selectedIndex].value;
               }
</SCRIPT>

<FORM name="PBNForm">

<SELECT name="Myselect" onchange="doIt()">
  <option>By Product Type</option>
  <option value="[area scan tf=category, title/va=category=*]">All 
Products</option>
  <option value="[area scan se=something1/sf=category/tf=title]">Something 
1</option>
  <option value="[area scan se=something2/sf=category/tf=title]">Something 
2</option>
  <option value="[area scan se=something3/sf=category/tf=title]">Something 
3</option>
</SELECT>

</FORM>

Hope that helps,
Miles

>Date: Mon, 26 Jul 1999 14:14:04 -0600
>From: Stanley Major <stanley@ciphersys.com>
>Subject: Problem submitting drop-down menu form
>
>******    message to minivend-users from Stanley Major 
><stanley@ciphersys.com>     ******
>
>I am new to minivend. I am trying to submit a search with a menu
>drop-down list. My html page contains:
>
><form action="[process-search]" method="POST">
>   <center><p><select name="mv_searchspec" size="5" multiple>
>     <option value="1">1</option>
>     <option value="9">9</option>
>     <option value="18">18</option>
>     <option value="22">22</option>
>     <option value="24">24</option>
>     <option value="25">25</option>
>     <option value="26">26</option>
>     <option value="28">28</option>
>   </select></p>
>   </center><div align="center"><center><p>
>      <input type="submit" value="search" name="mv_todo">
>      <input type="reset" value="reset" name="B2">
>      <input type="hidden" name="mv_search_file" value="products">
>      <input type="hidden" name="mv_search_field" value="category">
>      <input type="hidden" name="mv_search_page" value="results">
>      <input type="hidden" name="mv_return_fields"
>value="description,price"></p>
>   </center></div>
></form>
>
>When I submit the form, it is being directed to the URL:
>http://192.168.1.15/newcatalog/[process-search] , which does not
>exist. This looks like an obvious error, but I am not sure what is
>missing.
>The demo worked O.K.
>I am using Linux 6.0 with Apache.
>Thanks.
>Stanley Major  <stanley@ciphersys.com>
>Cipher Systems Ltd.			(ph)403-256-8877
>200, 279 Midpark Way SE 			(fax)403-256-8878
>Calgary, Alberta, Canada T2X 1M2		http://www.ciphersys.com
>Cipher Systems - Providing IT solutions since 1978
>


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


Search for: Match: Format: Sort by: