php - IP Binding Mikrotik API Cant Add Mac Address

one text

Can someone help me with my problem when inputing MAC Address in IP Bindings MikroTik API.

$macaddress = ($_POST['macaddress']);
    $address    = ($_POST['address']);
    $toaddress  = ($_POST['toaddress']);
    $server     = ($_POST['server']);
    $type       = ($_POST['type']);
    $comment    = ($_POST['comment']);

    $API->comm("/ip/hotspot/ip-binding/add", array(
        "mac-address"   => $macaddress,
        "address"       => $address,
        "to-address"    => $toaddress,
        "server"        => $server,
        "type"          => $type,
        "comment"       => $comment
    ));

above is an example of my code. when I delete the mac-address the script can run fine. but when I add a mac-address for some reason the data I send can't be inputted.

Source