Skip to content

HochdruckHummer/SimpleSausageOrderForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

SimpleSausageOrderForm

This is a lightweight order form for small groups to make ordering sausages for club members more easy. Security is completely neglected. Should not be openly published. Saves orders in a JSON file. Can be reset via secret link.

Bildschirmfoto 2026-02-25 um 20 14 24

Designed for simplicity:

  • No database required
  • No authentication system
  • No external dependencies
  • Works on any standard PHP web hosting
  • Perfect for small clubs, amateur radio groups, sport clubs or community events.

Features

Participants enter:

  • Name (required)

  • Callsign (optional) - can also be repurposed for some other identification like player number, member number and so on.

  • Number of bratwursts (sausages) to be ordered

  • Orders are stored in a local JSON file

  • Automatic total calculation

  • Mobile-friendly layout

  • Admin reset functionality (via secret link)

  • Search engines are prevented from indexing the page

Requirements

PHP 7.0 or higher Write permissions in the project directory No database required.

Installation

Upload the PHP file (e.g. index.php) to your web server. Make sure the directory is writable by PHP. Open the page in your browser: https://your-server.com/index.php The file orders.json will be created automatically.

Admin Reset

The admin panel is hidden by default. To access it, append the secret key to the URL:
https://your-server.com/index.php?admin=YOUR_SECRET_KEY
Inside the code, you can configure:
$adminPassword = 'YOUR_ADMIN_PASSWORD';
$adminSecretKey = 'YOUR_SECRET_KEY';
To reset all orders:

  1. Open the admin URL
  2. Enter the admin password
  3. Click "Reset orders"

Preventing Search Engine Indexing

The page includes: This prevents search engines from indexing the page. For additional protection, you may add a robots.txt file: User-agent: * Disallow: /

Project Structure

/project-folder
├── index.php
└── orders.json (auto-created)

Security Notes

This project is intentionally simple. There is no authentication for order submission. Anyone with the link can submit orders. The admin URL should not be shared publicly. For production use on a public server, consider:

  • Using HTTPS
  • Using reverse proxy
  • Moving credentials outside the web root
  • Adding basic authentication

About

This is a lightweight order form for small groups to make ordering sausages for club members more easy. Security is completely neglected. Should not be openly published. Saves orders in a JSON file. Can be reset via secret link.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages