V
V
viktorulyushev2017-02-03 15:03:22
Validation
viktorulyushev, 2017-02-03 15:03:22

Why does the validator swear at closing the tag?

For example, swears at the closing td

<td><?=GetMessage("FORM_CAPTCHA_FIELD_TITLE")?><?=$arResult["REQUIRED_SIGN"];?></td>

Swears at the opening td tag
<td>Введите символы с картинки<font color='red'><span class='form-required starrequired'>*</span></font>

Swears at the closing tr and the second opening tr
<tr>
      <td>&nbsp;</td>
      <td><input type="hidden" name="captcha_sid" value="002b67946d79e2cb5c71e19cbfc7a036" /><img src="/bitrix/tools/captcha.php?captcha_sid=002b67946d79e2cb5c71e19cbfc7a036" width="180" height="40" /></td>
        </tr>
        <tr>
      <td>Введите символы с картинки<font color='red'><span class='form-required starrequired'>*</span></font></td>
      <td><input type="text" name="captcha_word" size="30" maxlength="50" value="" class="inputtext" /></td>
        </tr>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2017-02-03
@viktorulyushev

Because tr, td tags should be used inside table:

<table>
    <tr>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
</table>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question