xref: /webtrees/resources/views/captcha.phtml (revision 3d2c98d1066d5e178a3d1ceb3bdc58b7ba8ee926)
1<?php
2
3/**
4 * @var string $x
5 * @var string $y
6 * @var string $z
7 */
8
9?>
10<input type="text" name="<?= e($x) ?>" class="d-none" aria-label="field1" value="ok">
11<input type="text" name="<?= e($y) ?>" class="d-none" aria-label="field2" value="<?= e($z) ?>">
12
13<script>
14    document.getElementsByName(<?= json_encode($x) ?>)[0].value = document.getElementsByName(<?= json_encode($y) ?>)[0].value;
15</script>
16