This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$statusMsg = ''; | |
$msgClass = ''; | |
if(isset($_POST['submit'])){ | |
// Get the submitted form data | |
$email = $_POST['email']; | |
$name = $_POST['name']; | |
$subject = $_POST['subject']; | |
$message = $_POST['message']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// array | |
$array = Array ( | |
"0" => Array ( | |
"id" => "USR1", | |
"name" => "Steve Jobs", | |
"company" => "Apple" | |
), | |
"1" => Array ( | |
"id" => "USR2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//API URL | |
$url = 'http://www.contohweb.com/api'; | |
//create a new cURL resource | |
$ch = curl_init($url); | |
//setup request to send json via POST | |
$data = array( |
OlderNewer