Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - dropdown search not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

dropdown search not working

 Post Reply Post Reply
Author
simflex View Drop Down
Groupie
Groupie
Avatar

Joined: 10 November 2002
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote simflex Quote  Post ReplyReply Direct Link To This Post Topic: dropdown search not working
    Posted: 19 December 2003 at 2:42pm

All I want is get a search criteria from the kiser table into a dropdown box, select a location from that list and send them to searchResults.asp.

So far, when I run this form called searchForm.asp, the page is blank.

Can you please, please help!

 

Here the entire code for searchForm.asp

 

<%
Set myConn=Server.CreateObject("ADODB.Connection")
myConn.open("panoa")
SQLstr = "SELECT * FROM kiser WHERE loca IS NOT NULL ORDER BY loca"
Set RS = myConn.Execute (SQLstr)
%>

<html>
<head>
 <title Search For Address</title>
</head>
<body bgcolor="ffffff">
 <center><h2> Search For a Location:</h2>
 <form="selectRecordForm" action="SearchResults.asp" method="post">
  <table>
   <tr>
      <td>Location </td>
   </tr>
   <tr>
    <td>
       <select name="selLocation">
       <%
        Do while NOT RS.EOF
       %>
       <option value='<%=RS("loca")%>'
       <% if (RS("loca") = "Marsh Creek") Then
       Response.Write("SELECTED")
       End If%>>
       <%=RS("loca")%>
       <%
       RS.MoveNext
       Loop
       %>
       </select>
       </td>
       </tr>
       <tr>
        <td>
         <input type="button" name="cmdback" value="Back" onClick="history.go(-1)">
         <input type="reset" name="cmdreset" value="Reset">
        </td>
        <td align="center">
        <input type="submit" name="cmdsubmit" value="Search">
        </td>
       </tr>
       </table>
       </form>
       </center>
       <%
        RS.close
        myConn.close
       %>
       </body>
       </h

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.