E
E
Eugene M2021-01-07 15:39:11
1C-Bitrix
Eugene M, 2021-01-07 15:39:11

How to display the value of the form in Bitrix?

There is a form in this format, it is inserted arbitrarily on any page, you need to display the VALUE of the login and mail in it, then what is indicated in it now does not work, tell me how to do this?

value="<?=$arResult["EMAIL"]?>"
value="<?=$arResult["VALUES"]["EMAIL"]?>"

Output nothing.

<fo rm class="slider_form" method="post" action="/registration/" name="regform" enctype="multipart/form-data">
    <div class="slider_form__h2">Платная экспресс консультация</div>
        <div class="docum">
          <div class="docum__group docum__group--209">
            <div class="docum__wrap_input">
              <label>Моб. телефон (логин)<span class="starrequired"> *</span></label>
              <input class="docum__input" size="12" type="text" name="REGISTER[LOGIN]" value="<?= \htmlspecialcharsbx($arResult['LAST_LOGIN']);?>" placeholder="+7 924 836 6">    
            </div>
            <div class="docum__wrap_input"> 
              <label>Электронная почта<span class="starrequired"> *</span></label>
              <input class="docum__input" size="50" type="text" name="REGISTER[EMAIL]" value="<?=$arResult["VALUES"][$FIELD]?>" placeholder="Введите адрес почты">    
            </div>
          </div>  
          <div class="docum__group">
                  <label class="checkbox_vib">
                    <input class="checkbox_vib__real" name="checkz" type="checkbox" checked="checked"/><span class="checkbox_vib__fake"></span>
                    <div class="checkbox_vib__title"><a href="/polzovatelskoe-soglashenie/" target="_blank">Принимаю публичную оферту</a></div>
                  </label>
           </div>
            <input class="btn" type="submit" name="register_submit_button" value="Начать регистрацию">
    </div>
</form>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question