Bitrix Site Manager

ShowMessage

ShowMessage(
  mixed message
)

The function ShowMessage is used to emit error descriptions and other messages.

Parameters

ParameterDescription
message Error description text or an array with the following keys:
  • TYPE - message type; the following values are possible:
    • OK - common message using the CSS class "notetext";
    • ERROR - error message using the CSS class "errortext".
  • MESSAGE - message text.

Example



<?
// display common message
ShowMessage(Array("TYPE"=>"OK", "MESSAGE"=>"Data saved."));
?>
<?
// display error message
ShowMessage("Error! Please fill in the required fields!");
?>