<commit_before># ajaxContactForm

Simple AJAX & PHP contact form with fallback for when JavaScript is disabled.

Created by [<NAME>](https://www.adonald.co.uk).

## Quick Start

1. Edit the main options in `ajaxContactForm.php`.
2. Upload the `contact` directory to your website.
3. Create a simple contact form on your site that calls `ajaxContactForm.php`
   using `POST`.
4. Include an empty div for the result message `<div id="result"></div>`.
5. Include the `ajaxContactForm.js` file on the same page as the form.
6. Tell **ajaxContactForm** what your form and result element IDs are (see below).
7. Sit back and watch the emails come in!<commit_msg>Added ToC to README<commit_after># ajaxContactForm

Simple AJAX & PHP contact form with fallback for when JavaScript is disabled.

Created by [<NAME>](https://www.adonald.co.uk).

1. [Quick Start](#quick-start)
2. [PHP Options](#php-options)
3. [HTML Form](#html-form)
4. [JavaScript](#javascript)
5. [Fallback Behaviour](#fallback-behaviour)
6. [Work in Progress](#work-in-progress)

## Quick Start

1. Edit the main options in `ajaxContactForm.php`.
2. Upload the `contact` directory to your website.
3. Create a simple contact form on your site that calls `ajaxContactForm.php`
   using `POST`.
4. Include an empty div for the result message `<div id="result"></div>`.
5. Include the `ajaxContactForm.js` file on the same page as the form.
6. Tell **ajaxContactForm** what your form and result element IDs are (see below).
7. Sit back and watch the emails come in!
{'fraction_non_alphanumeric': 0.11162179908076166, 'fraction_numerical': 0.013131976362442548, 'mean_word_length': 4.347368421052631, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2416171', 'n_tokens_mistral': 472, 'n_tokens_neox': 446, 'n_words': 206}