beav33 Posted November 30, 2006 Share Posted November 30, 2006 My question is does it matter which one you us if your search form is short. Meaning, the search form I am using is no where near 8192characters, but the results from the db will be in the thousands. So can I still use GET or do I have to use POST. Might be stupid question, but it is stumping me bad, lol.Thank you Link to comment https://forums.phpfreaks.com/topic/29042-get-vs-post/ Share on other sites More sharing options...
marcus Posted November 30, 2006 Share Posted November 30, 2006 Well, if you want the search query to be visible in the browser you can use getsite.com/search.php?search=searchedvs. POSTwhich will post the data and the search query will not be visible site.com/search.php Link to comment https://forums.phpfreaks.com/topic/29042-get-vs-post/#findComment-133072 Share on other sites More sharing options...
btherl Posted December 1, 2006 Share Posted December 1, 2006 If your form is short but the results are big, then it doesn't matter. The only thing that matters is what you are submitting. Link to comment https://forums.phpfreaks.com/topic/29042-get-vs-post/#findComment-133150 Share on other sites More sharing options...
projectshifter Posted December 1, 2006 Share Posted December 1, 2006 If you're transmitting any kind of sensitive data use post, but if it's just a $search flag or something then get is usually just a little nicer urls but doesn't make a difference. And if you use $_REQUEST then you could pick which one you want to use and change it up later ;) Link to comment https://forums.phpfreaks.com/topic/29042-get-vs-post/#findComment-133165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.