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.
- 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.
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
PHP 7.0 or higher Write permissions in the project directory No database required.
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.
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:
- Open the admin URL
- Enter the admin password
- Click "Reset orders"
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-folder
├── index.php
└── orders.json (auto-created)
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