How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?
You can get any query string data i.e www.example.com?id=2&name=r
www.example.com?id=2&name=r
You must get data using $_GET['id'] or $_REQUEST['id'].
$_GET['id']
$_REQUEST['id']
Post data means like form you must use $_POST or $_REQUEST.
$_POST
$_REQUEST