PHP POST Method

The POST method transfers information via HTTP headers. The information is encoded as described in case of GET method and put into a header called QUERY_STRING. Code <?php if( $_POST[“username”] || $_POST[“email”] ) { echo “Username”. $_POST[‘username’]. “<br />”; echo…

Read MorePHP POST Method

PHP GET Method

php

The GET method sends the encoded user information appended to the page request. The page and the encoded information are separated by the ? character. URL http://www.example.com/user.php?id=value1&username=value2 Code <?php if( $_GET[“username”] || $_GET[“email”] ) { echo “Username”. $_GET[‘username’]. “<br />”;…

Read MorePHP GET Method

Lusha API using PHP curl

The Lusha API returns data of business profiles. It can access a user’s phone, email, and location. It is available in REST architecture with API Key by request using PHP curl. Example <?php $url = ‘https://api.lusha.co/person?firstName=?&lastName=?&company=?’; $ch = curl_init(); curl_setopt($ch,…

Read MoreLusha API using PHP curl