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 Quote Link to comment 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"> Quote Link to comment 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 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.