Posts

Showing posts from September, 2023

Javascript send data with post and PHP get the data

PHP get the data <?php // API endpoint URL // $api_url = 'https://test.httpapi.com/api/domains/search.json?auth-userid=1218079&api-key=ot4Qrz0PMetJIzl2PLQmRg5hzB3esQkU&no-of-records=10&page-no=1'; $jsonData = file_get_contents("php://input"); if (!empty($jsonData)) {     $data = json_decode($jsonData, true);     if ($data === null) {         $response = array("error" => "Invalid JSON data");         http_response_code(400); // Bad Request     } else {         $domain_name = $data["searchnthsk"];                  $api_url = 'https://domaincheck.httpapi.com/api/domains/available.json?auth-userid=1218079&api-key=ot4Qrz0PMetJIzl2PLQmRg5hzB3esQkU&domain-name='.$domain_name.'&tlds=com&tlds=in&tlds=co.in&tlds=org&tlds=net';                 $ch = curl_init($api_url);                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return the response as a string         $response = c

IMAGE DESIGN ISSUES

 https://moderncss.dev/css-only-full-width-responsive-images-2-ways/