ctcp Posted July 29, 2009 Share Posted July 29, 2009 i got texfield (for search) list menu (1 or 2) and Button (Search) how to if i search test type 1 (i whant this result to my page) mysite.com/1/?query=test&type=1 if i search test type 2 (i whant this result to my page) mysite.com/2/?query=test&type=2 <form name="form1" method="get" action=""> <label for="query1"></label> <input type="text" name="query1" id="query1"> <label for="type"></label> <select name="type" id="type"> <option value="1">1</option> <option value="2">2</option> </select> <label for=""></label> <input type="submit" value="Search"> </form> Thanks for the Help Link to comment https://forums.phpfreaks.com/topic/167955-drop-downlist-menu/ Share on other sites More sharing options...
Adam Posted July 29, 2009 Share Posted July 29, 2009 Ermm, you're not really far off. Just change the query input to this: <label for="query"></label> <input type="text" name="query" id="query"> Link to comment https://forums.phpfreaks.com/topic/167955-drop-downlist-menu/#findComment-885871 Share on other sites More sharing options...
ctcp Posted July 29, 2009 Author Share Posted July 29, 2009 yes this working but how to redirect to difrent url if i search test type 1 (i whant this result to my page) mysite.com/1/?query=test&type=1 if i search test type 2 (i whant this result to my page) mysite.com/2/?query=test&type=2 Link to comment https://forums.phpfreaks.com/topic/167955-drop-downlist-menu/#findComment-885876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.