kemper Posted August 28, 2007 Share Posted August 28, 2007 I would like to add a game_id search to my youth sports website. Basically, it would be a single text area and search button to display game.php page. game.php page is created to display as www.mysite.org/game.php?game_id=______. How would I set up the search to drop game_id from search into my game.php query? Quote Link to comment https://forums.phpfreaks.com/topic/66989-solved-use-search-form/ Share on other sites More sharing options...
pocobueno1388 Posted August 28, 2007 Share Posted August 28, 2007 You would just set your form action to "GET", then it will automatically send the information through your URL. Just make sure the textareas name is "game_id". Quote Link to comment https://forums.phpfreaks.com/topic/66989-solved-use-search-form/#findComment-335924 Share on other sites More sharing options...
kemper Posted August 28, 2007 Author Share Posted August 28, 2007 How do I get this to into www.mysite.org/game.php? <form method='GET'> <p><input type='text' name='game_id' size='20'> <input type='submit' value='Search' name='search'></p> </form> Quote Link to comment https://forums.phpfreaks.com/topic/66989-solved-use-search-form/#findComment-335928 Share on other sites More sharing options...
pocobueno1388 Posted August 28, 2007 Share Posted August 28, 2007 Try this: <form action='game.php' method='GET'> <p><input type='text' name='game_id' size='20'> <input type='submit' value='Search' name='search'></p> </form> Quote Link to comment https://forums.phpfreaks.com/topic/66989-solved-use-search-form/#findComment-335929 Share on other sites More sharing options...
kemper Posted August 28, 2007 Author Share Posted August 28, 2007 Duh! Simple enough! THANKS! Quote Link to comment https://forums.phpfreaks.com/topic/66989-solved-use-search-form/#findComment-335935 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.