xref: /webtrees/resources/views/captcha.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
17c2c99faSGreg Roach<?php
27c2c99faSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
57c2c99faSGreg Roach/**
67c2c99faSGreg Roach * @var string $x
77c2c99faSGreg Roach * @var string $y
87c2c99faSGreg Roach * @var string $z
97c2c99faSGreg Roach */
107c2c99faSGreg Roach
117c2c99faSGreg Roach?>
1270ca9c90SGreg Roach<input type="text" name="<?= e($x) ?>" class="d-none" aria-label="field1" value="ok">
1370ca9c90SGreg Roach<input type="text" name="<?= e($y) ?>" class="d-none" aria-label="field2" value="<?= e($z) ?>">
1470ca9c90SGreg Roach
1570ca9c90SGreg Roach<script>
16728c8c27SGreg Roach    document.getElementsByName(<?= json_encode($x, JSON_THROW_ON_ERROR) ?>)[0].value = document.getElementsByName(<?= json_encode($y, JSON_THROW_ON_ERROR) ?>)[0].value;
1770ca9c90SGreg Roach</script>
18