https://github.com/sanderdlm/form-storage
Single-file form storage in sqlite
https://github.com/sanderdlm/form-storage
Last synced: about 1 year ago
JSON representation
Single-file form storage in sqlite
- Host: GitHub
- URL: https://github.com/sanderdlm/form-storage
- Owner: sanderdlm
- Created: 2022-06-30T20:04:12.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-30T20:15:30.000Z (about 4 years ago)
- Last Synced: 2025-06-20T01:08:59.452Z (about 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Formspree for dummies
Single-file proof-of-concept for a self-hosted Formspree alternative. Can be used to accept all incoming POST calls and store them in an sqlite database file. Useful for forms on static sites.
NOT safe, do NOT use this as-is. For this to be really useful you'd have to make the form keys unique, and enforce usage of each key by only 1 user/domain. Right now everyone can write to any key with any content/fields.
Example:
```html
Your Email
Message
Submit
```
Submitting this form will create a new entry in the sqlite database on your server for key "someRandomKey" and the entire POST body (email and message) as a JSON encoded string. You can then query this data and handle it as you please (mail it to someone, export it as a CSV, send it to Google Spreadsheets, etc..).