Skip to content

Commit

Permalink
Update contact.html
Browse files Browse the repository at this point in the history
  • Loading branch information
chaturadissanayake authored Sep 28, 2024
1 parent 710665f commit 4a0f153
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ <h2>Say Hello</h2>
<li><i class="ri-mail-open-line"></i>Email: chaturawtf@mail.com</li>
</ul>
<div class="contact-form contact-form-area wow fadeInUp delay-0-4s">
<form id="contactForm" class="contactForm" name="contactForm" action="assets/php/form-process.php" method="post">
<!-- Update the form action to use the Google Apps Script web app URL -->
<form id="contactForm" class="contactForm" name="contactForm" action="https://script.google.com/macros/s/AKfycbwl40gycmUm8TwKQ_pgx9QsO61QFOFvRIzkzoEFuQgdpGP_ifPaldUOJWeFf-qNAVT1/exec" method="POST">
<div class="row">
<div class="col-md-6">
<div class="form-group">
Expand Down Expand Up @@ -264,10 +265,10 @@ <h2>Say Hello</h2>

$.ajax({
type: "POST",
url: "assets/php/form-process.php", // The PHP file that handles form submission
url: "https://script.google.com/macros/s/AKfycbwl40gycmUm8TwKQ_pgx9QsO61QFOFvRIzkzoEFuQgdpGP_ifPaldUOJWeFf-qNAVT1/exec", // Google Apps Script Web App URL
data: formData,
success: function (response) {
if (response.trim() == "success") {
if (response.trim() == "Success") {
$("#msgSubmit").removeClass("hidden").html("Message sent successfully!");
$("#contactForm")[0].reset(); // Reset the form after successful submission
} else {
Expand Down

0 comments on commit 4a0f153

Please sign in to comment.