Can you post JSON data to the same URL (PHP Program)?
<html>
<head>
<title> </title>
</head>
<body>
<?php
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
If (!isset($_POST['submit']))
{
echo ("Submit was not pressed!!!") ;
$jsondata = json_encode($arr);
print_r($jsondata); // used to test data encode
print("<form action=\"http://192.168.1.9:10088/jquery/jsontest.php?data_sent=".$jsondata."\" method=\"POST\">");
?>
<input type="Submit" name="submit" value="submit">
</form>
<?php
}
else
{
echo ("Submit was pressed!!!") ;
$data = json_decode($_POST['jsondata']); //get JSON data and place in array for use
$newarr = json_decode($data) ;
print_r($newarr); // used to test data post and decode
}
?>
</body>
</html>

