GithubHelp home page GithubHelp logo

embed-php's Introduction

Discord Webhook Form

A simple php script for alerting users about a form submission via a discord webhook, the main focus is ease of use, requiring hardly any back-end setup. Requires curl to be enabled inorder to post via webhook.

Setup

Setup with Template.

  • Upload all the files onto your webserver.
  • Enter your details into config.php.
  • Change the form html tags in index.php.

Setup with Custom Form.

  • Upload config.php & discord-post.php into your webserver.
  • Enter your details into config.php.
  • I'd delete all the form formatting for the template out of config.php.
  • Have your form posting to discord-post.php.
Custom Example
<form method="post" action="discord-post.php">
  <textarea name="message" placeholder="Message" required></textarea>
  <button type="submit">send</button>
</form>

Formatting

  • name="" is used as the input title in the discord message, it is auto capitalised.
  • value="" is entered below the title.

Notes

  • Form returns back with ever ?r=success or ?r=error.
  • No backend form verification, users could add new form inputs. That shouldn't really matter because they will just be posted with the message and nothing malicious could be done.

Preview

Discord Message

discord message preview

Form Template

form template

Demo

Submit a form entry on our demo site here.

All submission on the demo website are posted into this discord server.

embed-php's People

Contributors

wineerx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.