Last active
February 19, 2020 13:49
-
-
Save ArtemSites/6d3e7d83e9d5a1a926afd9f431a24275 to your computer and use it in GitHub Desktop.
Bitrix: простой скрипт отправки формы. | Bitrix: a simple form submission script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
$name = trim($_POST["user_name"]); | |
$phone = trim($_POST["user_phone"]); | |
$arEventField = array( | |
'USER_NAME' => $name, | |
'USER_PHONE' => $phone, | |
); | |
CEvent::Send("WEB_FORM_IS_ADDED", "s1", $arEventField, "N", "65", ""); | |
$result = "success"; | |
echo $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment