HTML Form into a Discord Webhook [PAID]

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Shaun

Web Developer, owner of Syncore LLC
Supreme
Feedback score
20
Posts
622
Reactions
408
Resources
0
Uhh the title says it all. Simply need a form from my website to send out a discord webhook. Willing to pay.

Contact me if you're interested; matty#0003

What language was your site created with?
 

Matty

Supreme
Feedback score
25
Posts
1,056
Reactions
434
Resources
0
Alright, feel free to add me on Discord @ Athy#9347.

Discord seems to not be working. If you could add me instead, would be amazing. matty#0003

upload_2021-3-1_15-59-28.png
[DOUBLEPOST=1614616356][/DOUBLEPOST]STILL OPEN
 

Attachments

  • upload_2021-3-1_15-59-28.png
    upload_2021-3-1_15-59-28.png
    17.8 KB · Views: 149
Last edited:

Function

Minecraft Plugin Developer
Supreme
Feedback score
38
Posts
936
Reactions
332
Resources
0
Code:
<input type="submit" value="Send Webhook" onclick="submit()">

<script type="text/javascript">
    function submit() {
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function () {
            if (xhr.readyState === 4) {
                alert(xhr.response);
            }
        }
        xhr.open('post', 'WEBHOOK', true);
        xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
        xhr.send();
    }

</script>
pretty sure this willwork
 
Status
This thread has been locked.
Top