The action attribute contains the email address to which summaries of the form submissions are sent.
<form action="https://url.tld/email@address.tld"></form>
Hidden Configuration Fields
Various other configuration options are set in hidden fields.
<form action="https://url.tld/email@address.tld">
<input type="hidden" name="*..." value="...">
...
</form>
Send a copy of the email to this address, but don't mention it in emails sent to other addresses
Send a copy of the email to this address
If a truthy value, no email is sent and instead the content of the email is shown in the browser along with other useful information
Helps organize and identify submissions when looking at stored submissions in the database
If any value, the submission is rejected
Following a successful submission, the submitter will be sent
to this URL. This must be an actual URL, not just something you think is a URL, because it's run through filter_var
with FILTER_VALIDATE_URL
.
All emails come from the PHP default, but replies will be sent to this address instead
The subject line of the email
The address to which a form summary will be sent
- Do not use checkbox fields in your form
- Only values of ticked checkboxes are transmitted
- Avoidance is the easiest mitigation
- New field
*honeypotname
- The name of a field that is a honeypot
- Submissions with values in that field are rejected
- New field
*from
- Set the from header
- Currently the PHP default is used
- New Field
*thanksmessage
- The text that will appear on the thanks page