update php mail scripts and validation

This commit is contained in:
David Miller 2021-04-01 19:04:49 -04:00
parent d8911cd314
commit 8647dd5d47
3 changed files with 897 additions and 897 deletions

2
dist/index.html vendored
View File

@ -215,7 +215,7 @@
<div class="timeline-image"><img class="rounded-circle img-fluid" src="assets/img/about/4.jpg" alt="..." /></div> <div class="timeline-image"><img class="rounded-circle img-fluid" src="assets/img/about/4.jpg" alt="..." /></div>
<div class="timeline-panel"> <div class="timeline-panel">
<div class="timeline-heading"> <div class="timeline-heading">
<h4>July 2020</h4> <h4>July 2021</h4>
<h4 class="subheading">Phase Two Expansion</h4> <h4 class="subheading">Phase Two Expansion</h4>
</div> </div>
<div class="timeline-body"><p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!</p></div> <div class="timeline-body"><p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!</p></div>

View File

@ -21,7 +21,7 @@ $(function () {
$this = $("#sendMessageButton"); $this = $("#sendMessageButton");
$this.prop("disabled", true); // Disable submit button until AJAX call is complete to prevent duplicate messages $this.prop("disabled", true); // Disable submit button until AJAX call is complete to prevent duplicate messages
$.ajax({ $.ajax({
url: "/assets/mail/contact_me.php", url: "/assets/mail/contact_me.php", // Make sure this points to the contact_me.php file on your server
type: "POST", type: "POST",
data: { data: {
name: name, name: name,
@ -56,8 +56,8 @@ $(function () {
$("#success > .alert-danger").append( $("#success > .alert-danger").append(
$("<strong>").text( $("<strong>").text(
"Sorry " + "Sorry " +
firstName + firstName +
", it seems that my mail server is not responding. Please try again later!" ", it seems that my mail server is not responding. Please try again later!"
) )
); );
$("#success > .alert-danger").append("</div>"); $("#success > .alert-danger").append("</div>");

File diff suppressed because it is too large Load Diff