Current Assignment(s)
A4: Questionnaire
Due: Recommended by Monday, 5.28
Due: Recommended by Monday, 5.28
Method
<form action="#" method="..." id="..." class="..."> ... </form>
Forms can be sent using one of two methods; ‘get
’ or ‘post
’.
With the ‘get
’ method, values are added to the end of the specified action URL.
This methods is ideal for searches, or for retrieving data from a server (as opposed to sending data that will be stored in a database).
With the ‘post
’ method, values are sent in what are known as ‘HTTP headers’. As a rule of thumb, use the ‘post
’ method when;
- users are uploading a file.
- the data will be very long
- the data is sensitive (ie. contains passwords)
- The data is intended to alter or access a database on the server.
- Previous
- Next