Skip to content

Instantly share code, notes, and snippets.

irishgeoff20 / headless-forms
Created October 5, 2023 13:55
headless forms
"Headless forms" can refer to different concepts depending on the context, but it often relates to web development and user interfaces. Here are a few interpretations:
1. **Headless CMS (Content Management System) Forms:** In web development, a headless CMS is a content management system that stores and manages content separately from the presentation layer. Headless CMS platforms often allow you to create and manage forms for gathering user input or feedback. These forms can be integrated into websites or applications by developers without being tied to a specific front-end framework or design (hence "headless").
2. **Headless Browsers and Automated Testing:** In software testing and web scraping, a "headless browser" is a web browser without a graphical user interface. It can be used for tasks like automated form submissions, data extraction, and testing web applications without launching a visible browser window. Headless browsers interact with websites programmatically.
3. **Progressive Web Application
irishgeoff20 / notion-forms
Created October 5, 2023 13:12
notion forms
1. **Create the Form:** First, you would need to create the form using an external service like Google Forms, Typeform, or any other form builder that provides embeddable code.
2. **Get the Embed Code:** Once your form is created, most form builders offer an option to generate an embed code. Look for options like "Embed" or "Share" in the form builder.
3. **Copy the Embed Code:** Copy the provided embed code to your clipboard. It usually looks like an HTML iframe code.
4. **Add to Notion:**
- Create or open a Notion page where you want to embed the form.
- Add a new block by clicking the "+" button.
irishgeoff20 / neocities-forms
Created October 5, 2023 09:55
neocities forms
Neocities is a web hosting service that allows users to create and host their own websites. While Neocities provides the basic infrastructure for creating and hosting websites, it does not offer built-in form-handling capabilities like some other web hosting services or content management systems (CMS). However, you can implement forms on your Neocities-hosted website by using HTML and JavaScript.
Here's a basic example of how you can create a simple contact form on your Neocities website:
1. **Create the HTML Form**:
<!DOCTYPE html>
An HTML form honeypot is a technique used to combat form spam, especially automated bot submissions, by adding a hidden field to a web form that should not be filled out by legitimate users. Bots often fill out all fields in a form, including hidden ones, while human users typically don't interact with these hidden fields. When a hidden field is submitted with a value, it indicates that a bot has attempted to submit the form, allowing the server-side script to reject the submission.
Here's how to implement an HTML form honeypot:
1. **HTML Form:**
Start by creating your HTML form with the fields you want, including the honeypot field:
<form action="process_form.php" method="post">
<label for="name">Name:</label>
Form spam, also known as comment spam or web form spam, refers to the unsolicited and often irrelevant or malicious submissions made through online forms on websites. These forms can include contact forms, comment sections, registration forms, and more. Form spam is typically created and submitted by automated bots or individuals with the intent to promote their own products or services, spread malware, or manipulate search engine rankings.
Common examples of form spam include:
1. **Comment Spam:** In the context of blogs and content management systems, spammers may submit comments that contain links to their own websites or products. These comments are often unrelated to the content of the page.
2. **Contact Form Spam:** Spammers may use contact forms to send unsolicited messages or advertisements to website owners. This can be annoying for website administrators and can clutter their inbox.
3. **Registration Form Spam:** Some websites require users to register before accessing certain content or featur
<p><a href="">AWS Amplify forms</a></p>