Most widely used request are

GET : show the record/response

POST : You Want post or add some data

PUT  : changing complete data or updating fully

PATCH : Partially update patch change password is example of patch request

DELETE : Destroyies the record/Response


HTTP REQUEST with Database

CRUD : 

C :create data (Insert)

R :Read or Retrieve (Select)

U :Update the data (Update)

D :Delete the data (Delete)


Note : HTTP protocol version :

HTTP/1.1

HTTP/2.1


Create => HTTP/1.1 POST 200 OK

Read => HTTP/1.1 GET 200 OK

Update => HTTP/1.1 PUT 200 OK

   => HTTP/1.1 PATCH 201 CREATED

DELETE => HTTP/1.1 DELETE 200 OK

  HTTP/1.1 GET 404 NOT FOUND

Tools such request can be sent using postman


Creating Unique Identity for Forms for server-side

--------------------------------------------------

Any Form Control either it is input box, radio button,select box,

date,time, file or button everything should have a unique name

this can be supplied by using name Attribute


<input type="text" name="something">

Note that name attribute value becomes key at the server side

if GET Request 


print_r($_GET)


Array([something]=>10)


if POST Request

print_r($_POST)


Array([something]=>10)


2. name attribute should be unique and Case Sensitive

3. if Request is sent using GET then name attribute is accessible using

$_GET 

4. if Request is send using POST the name attribute is accessible using

$_POST

5. if you dont want to care about method type you can go for $_REQUEST

which is Indepedent of Method Type