Configuring Contact Form

  • Home
  • / Configuring Contact Form

image

24 Dec 2023

09

35

Introduction

This part of the documentation shows you how you can configure a contact form with Tailwind CSS Templates and Bootstrap Templates.

Using PHP Contact Form:

For Bootstrap templates, we used to provide a PHP script that only can be used for PHP servers,

if phpmailer function is up and running smoothly.

Here is how it works: Just replace the email address with your own from

assets->php>contact.php

This procedure should work if everything is configured properly on the server side.

Using FormBold: A universal Form API (Recommended):

FormBold is a powerful form API and serverless form backend that works with all hosting, SSG, and frameworks.

We highly recommend, using a serverless end-point (FormBold) to make contact form dynamic. Since most users nowadays don't use PHP servers.

Here’s how to connect FormBold API with your contact form:

Step#1: Create an account on FormBold and create a Form.

Step#2: Integrate the API into your contact Form using this code. Make sure your Form’s method is set to POST

<form action="https://formbold.com/s/unique_form_id" method="POST">
  <input type="email" placeholder="email" name="email" />
  <input type="text" placeholder="subject" name="subject" />
  <textarea name="message" placeholder="message"></textarea>

  <button type="submit">Send Message</button>
</form>

You’ll find the unique_form_id in the FormBold dashboard under **Settings>Integration.**

Copy and paste it to the action attribute.

This is just the basic setup, FormBold has a lot of great features like re-captcha for spam protection, and the ability to integrate it with other apps like Webhook, Slack, Notion, and GoogleSheet. Learn more about FormBold here.

Join our newsletter!

Enter your email to receive our latest newsletter.

Don't worry, we don't spam

image

Related Articles

image
14 Feb 2024

Deploying a FREE Nodejs Serverless API in Vercel with Zenstack, Prisma and Neon's Free PostgreSQL

Explore the process of deploying a serverless API with Vercel, leveraging Zenstack for Prisma integration, TypeScript for enhanced development, and Neon's complimentary PostgreSQL database for your project. -by Evan Dangol

image
07 Feb 2024

Harnessing Machine Learning to Detect Toxic Comments - Using Calibrated Binary Classification Metrics Module

Unveiling Machine Learning's Power- Detecting Toxic Comments with C# -by Evan Dangol

image
06 Feb 2024

Will gRPC ultimately replace REST Api in future? A simple gRPC using nodejs with Nextjs

It's unlikely that gRPC will entirely replace REST (Representational State Transfer) API in the near future, as both technologies have their own strengths and are suitable for different use cases.gRPC (Google Remote Procedure Call) is a high-performance...