if($_POST["comtext"]):
$PROP2 = array();
$PROP2[63] = $arResult["ID"];
$arCommentArray2 = Array(
"PROPERTY_VALUES"=> $PROP2,
"MODIFIED_BY" => $USER->GetID(),
"IBLOCK_ID" => 12,
"IBLOCK_SECTION_ID" => false,
"NAME" => $arResult["ID"],
"ACTIVE" => "Y",
"DETAIL_TEXT" => $_POST["comtext"]
);
$PRODUCT_ID = $el2->Add($arCommentArray2);
endif;
|