Hi
I have a client who I designing a website for and they have asked if it's possible to have the contact form submissions stored in the couchcms database and also have a time stamp of accepting the terms check box on the contact form
Below is the current code for the form
I have not done a contact form before using couchcms as normally just do the form and the code to send it to the admin and the user who filled out the form is redirected to a confirmation page after form submission
I have a client who I designing a website for and they have asked if it's possible to have the contact form submissions stored in the couchcms database and also have a time stamp of accepting the terms check box on the contact form
Below is the current code for the form
- Code: Select all
<form name="contactForm" id="contact_form" method="post" action="#">
<div class="row g-4">
<div class="col-lg-12">
<div class="field-set">
<input type="text" name="Name" id="name" class="form-control" placeholder="Your Name" required>
</div>
<div class="field-set">
<input type="text" name="Email" id="email" class="form-control" placeholder="Your Email" required>
</div>
<div class="field-set">
<input type="text" name="phone" id="phone" class="form-control" placeholder="Your Phone" required>
</div>
<div class="field-set">
<select name="service" class="form-control">
<option>Service Inquiry Type</option>
<option value="Repairs">Repairs</option>
<option value="IT Support">IT Support</option>
<option value="Retainer Packages">Retainer Packages</option>
<option value="Other">Other</option>
</select>
</div>
<div class="field-set">
<textarea name="message" id="message" class="form-control h-100px" placeholder="Your Message" required></textarea>
</div>
<div class="field-set">
<input type="checkbox" id="agree" name="agree">
<label for="agree" class="text-light">I have read and agree to the <a href="privacy-policy.php" target="_blank">Privacy Policy</a></label>
</div>
</div>
</div>
<div id='submit' class="mt-3">
<input type='submit' id='send_message' value='Send Message' class="btn-main">
</div>
</form>
I have not done a contact form before using couchcms as normally just do the form and the code to send it to the admin and the user who filled out the form is redirected to a confirmation page after form submission