CModule::IncludeModule("iblock");
$el = new CIBlockElement;
$arLoadProductArray = Array(
"IBLOCK_ID" => 1,
"NAME" => $_POST["NAME_COMPANY"],
"TAGS" => $POST["TAGS"]
);
if($PRODUCT_ID = $el->Add($arLoadProductArray))
echo "<p class=\"ok\">New ID: ".$PRODUCT_ID."</p>";
else
echo "<p class=\"error\">Error: ".$el->LAST_ERROR."</p>";