Form Backend Test

Test Configuration

Form Action: submit-form.php

Method: POST

Enctype: multipart/form-data

Max File Size: 5MB

Allowed Files: PDF, JPG, PNG

What This Backend Does

  1. Receives form submissions from the contact form
  2. Validates all required fields (name, phone, email, service, location)
  3. Handles file uploads for compliance letters
  4. Saves uploaded files to /uploads/compliance-letters/
  5. Sends email notification to backflow@provenplumbing.ca
  6. Sends confirmation email to the customer
  7. Logs all submissions to logs/form-submissions.log
  8. Returns JSON response for AJAX requests

Files Created

Test the Form

Go to index.html#contact and submit the form.

Or test directly with curl:

curl -X POST \
  -F "name=Test User" \
  -F "phone=555-123-4567" \
  -F "email=test@example.com" \
  -F "service=annual-testing" \
  -F "location=Toronto" \
  -F "message=Test message" \
  https://www.provenplumbing.ca/submit-form.php

Expected Response

{
  "success": true,
  "message": "Thank you! We will contact you within 24 hours."
}

Setup Checklist

Security Features