When I put under
<button type="submit" name="submit" class="btn btn-success w-100" onclick="sendWebhook(`${document.getElementById('HookURL').value}`, `${document.getElementById('HookAuthor').value}`,`${document.getElementById('HookAvatar').value}`,`${document.getElementById('HookMsg').value}`);">Realizar Cambio</button>
it does not send the information to the database but it does send the webhook. But when I put it below it does not send the webhook but it does send the information to the database.