'Discord Webhook not sending when i use </form> to post data to a database
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
