Documentation

GetByID

CDBResult
CForm::GetByID(
 int form_id
 $GET_BY_SID="N"
)

The method returns parameters of web form as the CDBResult class object. Non-static method.

Method parameters

Parameter Description Available from version
form_id Web form ID.
GET_BY_SID Optional parameter.

See Also

Examples of use

<?
$FORM_ID = 2;
$rsForm = CForm::GetByID($FORM_ID);
$arForm = $rsForm->Fetch();
echo "<pre>"; print_r($arForm); echo "</pre>";
?>


© «Bitrix24», 2001-2024