HTML Form into a Discord Webhook [PAID]

Status
This thread has been locked.
ReliableSite: Dedicated Servers

Shaun

Web Developer, owner of Syncore LLC
Supreme
Feedback score
20
Posts
627
Reactions
408
Resources
1
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

converting.to
Supreme
Feedback score
25
Posts
1,022
Reactions
415
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: 123
Last edited:

Function

Discord Bot & Minecraft Plugin Developer
Supreme
Feedback score
38
Posts
946
Reactions
331
Resources
1
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
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.