Skip to content

Instantly share code, notes, and snippets.

View paul-oats's full-sized avatar

Paul Oats paul-oats

View GitHub Profile
@paul-oats
paul-oats / form-process.php
Created April 14, 2023 12:00 — forked from somatonic/form-process.php
ProcessWire example front-end form with file upload and fields
<?php
// ------------------------------ FORM Processing ---------------------------------------
$errors = null;
$success = false;
// helper function to format form errors
function showError($e){
return "<p class='error'>$e</p>";