How to pass the value of multiple fields in a custom field, CRM Bitrix?

Is there a web form on the website (CMS - WordPress)
Integrate with CRM Bitrix.
The question arose how to transfer the value of multiple fields in one custom field Bitrix?
(if you stupidly inserted, the value is passed only the last input)
July 8th 19 at 12:13
1 answer
July 8th 19 at 12:15
Option1:
In the form of WordPress and inputof that need imploding, the name parameter to put in the format of name[]. Or, easier to do input, a select with option multiple=multiple.
In General, form WordPress:
<form action>
 <input type="text" name="inputName[]">
 <input type="text" name="inputName[]">
 <button type="submit">Send</button>
</form>


Option 2:
Advance Bitrix to create a custom field with the parameter "multiple" and set the values. But there will have to pull out the id values from Bitrix and WordPress to transmit the ID person.

Find more questions by tags 1C-BitrixJavaScriptPHPWordPress