june_c21 Posted February 13, 2008 Share Posted February 13, 2008 hi, i just want to find out how to write the search function. My database table content gf,package, title. Example, when user click on 'GF1'from the drop down menu then it will automatically list the only GF1 available 'package' . then user choose the 'package' and type the keyword (title). PLease help. Appriciate that... Thanks a lot <form name="form1" method="post" action="search.php"> <select name="gf" id="gf"> <option value="GF1">GF1</option> <option value="GF2">GF2</option> <option value="GF3">GF3</option> </select> <select name="package" id="package"> <option value="Pack 1">Pack 1</option> <option value="Pack 2">Pack 2</option> </select> <input name="gf" type="text" id="gf"> <input type="submit" name="Submit" value="Search"> </form> Quote Link to comment Share on other sites More sharing options...
aschk Posted February 13, 2008 Share Posted February 13, 2008 You have 2 html fields named the same, this will cause issues. <select name="gf" id="gf"> and <input name="gf" type="text" id="gf"> Also, help us to help you, don't expect us to do ALL the legwork. How about you write out what you "think" the php should look like and do and then we'll push you in the right direction. Quote Link to comment Share on other sites More sharing options...
june_c21 Posted February 13, 2008 Author Share Posted February 13, 2008 sorry... is <select name="gf" id="gf"> and <input name="text1" type="text" id="text1"> i have no idea how to start it that's why i asking for help. I hope you guys can coach me more.. i don't expect you guys write it out all.... just guide me... tq 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.