<html>
<head>
<meta http-equiv="Content-Type" content="application/json">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
</head>
<body>
<form method="POST" action="zohoposttest3.php">
<input type="hidden" name ="authtoken" value="*********">
<input type="hidden" name ="scope" id="scope" value="creatorapi">
<input type="text" name="Client_Code" value="test">
<input type="text" name="User_Name" value="test">
<input type="submit" value="Add Record">
</form>
</body>
</html>
<?php
$authtoken = $_POST['authtoken'];
$client_code = $_POST['Client_Code'];
$user_name = $_POST['User_Name'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
// execute the request
$output = curl_exec($ch);
// output the profile information - includes the header
echo($output) . PHP_EOL;
// close curl resource to free up system resources
curl_close($ch);
?>