conker87 Posted September 30, 2008 Share Posted September 30, 2008 Hey guys. I'm trying to make a search function for my site, I would like to use the $_GET method, rather than the post method (as I would like the search term to be included in the URL. I use includes in my urls, so the search page is: /?content=search However when I change the method to get in the code, the url changes to: /?search=testing&submit=Submit How could I change it to use the following, and remove the value for the submit button: ?content=search&search=testing Link to comment https://forums.phpfreaks.com/topic/126443-_get-searching-and-urls/ Share on other sites More sharing options...
swamp Posted September 30, 2008 Share Posted September 30, 2008 can you post the code from the form? Link to comment https://forums.phpfreaks.com/topic/126443-_get-searching-and-urls/#findComment-653859 Share on other sites More sharing options...
Brian W Posted September 30, 2008 Share Posted September 30, 2008 Need the form code... you probably just have some things named wrong. Link to comment https://forums.phpfreaks.com/topic/126443-_get-searching-and-urls/#findComment-653928 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.