darbok Posted December 9, 2015 Share Posted December 9, 2015 what is the best method for getting data from a form to a mysql DB? Post? get? request? thanks Link to comment Share on other sites More sharing options...
Ingolme Posted December 9, 2015 Share Posted December 9, 2015 "request" is not an HTTP method. GET appends data to the URL and has a size limit, POST does not put the data in the URL and can send about as much data as the server will allow. As far as the database is concerned, it doesn't really matter how the data got there. GET requests are usually used for reading data without changing anything on the server while POST is used to give data to the server, so for a database-driven application the most common approach is to use POST to put the data in and GET to pull the data out. Link to comment Share on other sites More sharing options...
darbok Posted December 9, 2015 Author Share Posted December 9, 2015 "request" is not an HTTP method. GET appends data to the URL and has a size limit, POST does not put the data in the URL and can send about as much data as the server will allow. As far as the database is concerned, it doesn't really matter how the data got there. GET requests are usually used for reading data without changing anything on the server while POST is used to give data to the server, so for a database-driven application the most common approach is to use POST to put the data in and GET to pull the data out. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now