JTapp Posted March 1, 2008 Share Posted March 1, 2008 I’m new at php and I’m wondering if what I have to start from scratch on my current search code or if I can just edit what I have... Can somebody help me? I currently have a ‘search.html’ page that has a methode form searching for ‘DropDownItem1’= userinput, ‘DropDownItem2’= userinput, and ‘DropDownItem3’=userinput. It is forwarded to a results.php webpage. I now need to remove the form and user input function and make a stand alone button that specifically searches for DropDownItem1 = myspecificvariable. So the user doesn’t have an input option… they just click “go”. Can I keep my search.html page? I basically want a return of field "tblDpt.Number" to be all values of "4". Here is my current code on my search.html page: <form method="post" action=" results.php"; target="_blank"> <div align="center"> <p class="style1">Department Locator </p> <p> </p> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td bordercolor="#000000"> <p align="center"> <select name="metode" size="1"> <option value="tblDpt.Name">Name</option> <option value="tblDpt.Number">Number</option> <option value="tblDpt.City">City </option> <option value="tblDpt. County">County</option> </select> <input type="text" name="search" size="25"></p> <p align="center"> <strong>Search Now:</strong> <input type="submit" value="Go!!" name="Go"> </p></td> </tr> </table> </div> </form> Quote Link to comment Share on other sites More sharing options...
JTapp Posted March 2, 2008 Author Share Posted March 2, 2008 I figured it out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.