fixes in the contact form

master
Robbert Schep 2025-08-02 00:50:14 +02:00
parent f733639a87
commit 07361672c4
5 changed files with 28 additions and 23 deletions

View File

@ -3,11 +3,8 @@
We would love to hear from you. Whether you are interested in contributing, forming a partnership, or have a question about the project, please use the form below. Our team monitors submissions and will get back to you shortly. We would love to hear from you. Whether you are interested in contributing, forming a partnership, or have a question about the project, please use the form below. Our team monitors submissions and will get back to you shortly.
<form class="contact-form" action="https://api.staticforms.xyz/submit" method="post"> <form class="contact-form" action="https://api.staticforms.xyz/submit" method="post">
<!-- REQUIRED: Replace this with your StaticForms access key --> <!-- REQUIRED: Your StaticForms access key, wrapped in quotes. -->
<input type="hidden" name="accessKey" value=sf_ha7960c038fb88i3hbgf0d81> <input type="hidden" name="accessKey" value="sf_ha7960c038fb88i3hbgf0d81">
<!-- Makes the "Reply-To" email address the one the user submitted -->
<input type="hidden" name="replyTo" value="@">
<!-- Sets the subject of the email you will receive --> <!-- Sets the subject of the email you will receive -->
<input type="hidden" name="subject" value="Contact Form Submission - Smartup Zero"> <input type="hidden" name="subject" value="Contact Form Submission - Smartup Zero">
@ -22,13 +19,15 @@ We would love to hear from you. Whether you are interested in contributing, form
<label for="name">Name:</label> <label for="name">Name:</label>
<input type="text" id="name" name="name" required> <input type="text" id="name" name="name" required>
<label for="email">Email:</label> <!-- CRITICAL: The user's email field, correctly named "_replyto" -->
<input type="email" id="email" name="email" required> <label for="email">Your Email (for replies):</label>
<input type="email" id="email" name="_replyto" required>
<label for="message">Message:</label> <label for="message">Message:</label>
<textarea id="message" name="message" rows="8" required></textarea> <textarea id="message" name="message" rows="8" required></textarea>
<div class="g-recaptcha" data-sitekey=6LcXVZcrAAAAAErKk03ysIccvSose25YnkeiBP-b></div> <!-- The reCAPTCHA key, correctly wrapped in quotes -->
<div class="g-recaptcha" data-sitekey="6LcXVZcrAAAAAErKk03ysIccvSose25YnkeiBP-b"></div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script> <script src="https://www.google.com/recaptcha/api.js" async defer></script>
<button type="submit">Send Message</button> <button type="submit">Send Message</button>

View File

@ -1,24 +1,32 @@
<form class="contact-form" action="https://api.staticforms.xyz/submit" method="post"> <form class="contact-form" action="https://api.staticforms.xyz/submit" method="post">
<!-- Replace this with your StaticForms access key --> <!-- REQUIRED: Replace this with your StaticForms access key -->
<input type="hidden" name="accessKey" value="sf_ha7960c038fb88i3hbgf0d81"> <input type="hidden" name="accessKey" value=sf_ha7960c038fb88i3hbgf0d81>
<!-- This sets the subject of the email you will receive --> <!-- Makes the "Reply-To" email address the one the user submitted -->
<input type="hidden" name="replyTo" value="@">
<!-- Sets the subject of the email you will receive -->
<input type="hidden" name="subject" value="Contact Form Submission - Smartup Zero"> <input type="hidden" name="subject" value="Contact Form Submission - Smartup Zero">
<!-- This is where the user will be redirected after submitting the form --> <!-- Redirects user to a thank you page after submission -->
<input type="hidden" name="redirectTo" value="https://timeline0.org/thank-you"> <input type="hidden" name="redirectTo" value="https://timeline0.org/0_timeline/thank-you/">
<!-- This is a honeypot field to help prevent spam. Leave it empty. --> <!-- Anti-spam honeypot field. Do not change. -->
<input type="text" name="honeypot" style="display:none"> <input type="text" name="honeypot" style="display: none" tabindex="-1" autocomplete="off">
<label for="name">Your Name:</label> <!-- Form Fields -->
<label for="name">Name:</label>
<input type="text" id="name" name="name" required> <input type="text" id="name" name="name" required>
<label for="email">Your Email:</label> <label for="email">Email:</label>
<input type="email" id="email" name="email" required> <input type="email" id="email" name="email" required>
<label for="message">Your Message:</label> <label for="message">Message:</label>
<textarea id="message" name="message" rows="8" required></textarea> <textarea id="message" name="message" rows="8" required></textarea>
<div class="g-recaptcha" data-sitekey=6LcXVZcrAAAAAErKk03ysIccvSose25YnkeiBP-b></div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<button type="submit">Send Message</button> <button type="submit">Send Message</button>
</form> </form>

View File

@ -334,4 +334,4 @@ How to participate and make your voice heard.
We would love to hear from you. Whether you are interested in contributing, forming a partnership, or have a question about the project, please use the form below. Our team monitors submissions and will get back to you shortly. We would love to hear from you. Whether you are interested in contributing, forming a partnership, or have a question about the project, please use the form below. Our team monitors submissions and will get back to you shortly.
--8<-- "contact.md" --8<-- "_snippets/contact.md"

View File

@ -38,9 +38,6 @@ theme:
text: 'Source Sans Pro, Arial, sans-serif' text: 'Source Sans Pro, Arial, sans-serif'
code: 'Fira Mono, monospace' code: 'Fira Mono, monospace'
watch:
- includes
markdown_extensions: markdown_extensions:
- admonition - admonition
- pymdownx.details - pymdownx.details
@ -62,7 +59,8 @@ markdown_extensions:
emoji_generator: !!python/name:material.extensions.emoji.to_svg emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.inlinehilite - pymdownx.inlinehilite
- pymdownx.snippets: - pymdownx.snippets:
base_path: . base_path:
- docs
auto_append: auto_append:
- includes/glossary.md - includes/glossary.md
- pymdownx.keys - pymdownx.keys