ReusableForms v2.0 beta

Bootstrap 5 contact form with file upload

A contact form using Bootstrap 5 with file upload support
A bootstrap contact form can be used to provide a simple way for a user to contact you. It can also be used to gather feedback from users. There are a few reasons you might want to use a bootstrap contact form with file upload. A bootstrap contact form with file upload can be used to allow users to upload files when they contact the site owner. This can be useful if the user needs to upload a screenshot or other file to help explain their issue. Bootstrap 5 is a popular front-end framework that can help you create responsive websites quickly. You can create stylish websites using Bootstrap 5 and here is a quick contact form template for you to get started.

Code


        <h1>Contact Us</h1>
<form id="myform" name="myform" method="post">
    <div class="mb-3">
        <label for="email_addr">Email address</label>
        <input type="email" class="form-control" id="email_addr" name="email" placeholder="name@example.com">
    </div>
    <div class="mb-3">
        <label for="name_input">Name</label>
        <input type="name" class="form-control" id="name_input" name="name" placeholder="Name">
    </div>
    <div class="mb-3">
        <label for="message">Message</label>
        <textarea class="form-control" id="message" name="message" rows="3"></textarea>
    </div>
    <div class="mb-4">
        <label for="file_upload">Upload File</label>
        <input type="file" class="form-control" id="file_upload" name="file_upload">
    </div>
    <button type="submit" class="btn btn-primary px-5">Submit</button>
</form>
      

How to Use

Simply copy the code to your web page HTML.

Back-end processing and record keeping

You may want to get email notifications when a form is submitted. Moreover, you may want to store the form submission records, search the records later. All these requires a back-end processor. Here is how to add a backend to your form:

Using Ratufa backend

  • Go to ratufa.io
  • Press the "Connect your form" button
  • Code to connect your form is displayed. Copy the code to the bottom of the HTML code above
  • Test your form. Ratufa will display the submissions - to the right side
  • Copy the combined code to your web page
Ratufa will store your form submissions and you can configure to send email notifications. You can search and download the records whenever required.