Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function() {
- const forms = document.querySelectorAll("form");
- [...forms].forEach(form => {
- let hpField = document.createElement("input");
- hpField.type = "text";
- hpField.id = "hp-field";
- hpField.name = "hpfield";
- form.appendChild(hpField);
- });
- });
- </script>
- /* add to mailer.php on ~357 line after
- * var formData = new FormData($(cur_id)[0]);
- */
- // let honeypotFilled = formData.get("hpfield").length > 0;
- // if(honeypotFilled) return;
- /* hide field */
- input[type="text"]#hp-field {
- display: none;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement