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> Link to comment https://forums.phpfreaks.com/topic/93913-can-i-simplify-my-methode-code-or-do-i-have-to-start-from-scratch/ Share on other sites More sharing options...
JTapp Posted March 2, 2008 Author Share Posted March 2, 2008 I figured it out. Link to comment https://forums.phpfreaks.com/topic/93913-can-i-simplify-my-methode-code-or-do-i-have-to-start-from-scratch/#findComment-481401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.