G
G
Good Samaritan2018-11-20 13:34:26
1C-Bitrix
Good Samaritan, 2018-11-20 13:34:26

How to send POST variable to component.php from component template form?

I need to send a string from the form to component.php .
In action to specify component.php ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-11-20
@djamali

component.php is called on the page anyway, it also displays the component template.
You need to specify <?=POST_FORM_ACTION_URI?> in the action so that POST data is sent to the same component and it will be available in component.php
Documentation https://dev.1c-bitrix.ru/learning/course/?COURSE_I...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question