if (isset($_POST)) {




$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://bunny.net/pullzone/'.$_POST["birkikiuc"].'/edgerules/addOrUpdate');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"ActionType\":1,\"ActionParameter1\":\"".$_POST["site_adresi"]."\",\"ActionParameter2\":\"\",\"Triggers\":[{\"Type\":4,\"PatternMatchingType\":0,\"Parameter1\":\"\",\"PatternMatches\":[\"TR\"]}],\"TriggerMatchingType\":2,\"Enabled\":true}"); $headers = array(); $headers[] = 'Accept: application/json'; $headers[] = 'AccessKey: xxxxxxxxxx'; $headers[] = 'Content-Type: application/json'; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch);
if (curl_errno($ch))  {   echo 'Error:' . curl_error($ch); }
curl_close($ch);

}
<form>
<input *>
<input *>
<input *>
</form>