Breaking News

Default Placeholder

Here’s a basic example of a contact form in HTML:

htmlCopy code<form action="submit-form.php" method="POST">
  <label for="name">Name:</label>
  <input type="text" id="name" name="name" required>
  <label for="email">Email:</label>
  <input type="email" id="email" name="email" required>
  <label for="message">Message:</label>
  <textarea id="message" name="message" rows="5" required></textarea>
  <button type="submit">Send</button>

In this example, the form uses the POST method to submit the data to a PHP script located at submit-form.php. The name, email, and message fields are required, and the message field is a multi-line text input with five rows.

When the user clicks the Send button, the form data is sent to the PHP script for processing. You can customize the PHP script to handle the form data and send an email notification to the appropriate person or team.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share Article: