summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2022-10-23 10:59:31 -0400
committerAdam T. Carpenter <atc@53hor.net>2022-10-23 10:59:31 -0400
commit98e8b18b8a9135b273b67ea2e0167fdcf4b42b34 (patch)
tree2eb3a7b8fc4cb32ed42ea4ec6b1abd9d3a965beb
parenta930dc361e1d6932ed9b3f4454ecdff95f124514 (diff)
downloadcarpentertutoring-98e8b18b8a9135b273b67ea2e0167fdcf4b42b34.tar.xz
carpentertutoring-98e8b18b8a9135b273b67ea2e0167fdcf4b42b34.zip
feat: include optional phone in contact
-rw-r--r--index.php34
1 files changed, 19 insertions, 15 deletions
diff --git a/index.php b/index.php
index f47e14c..22d3504 100644
--- a/index.php
+++ b/index.php
@@ -34,12 +34,12 @@ include('header.php');
</h2>
<p> Carpenter Tutoring is a private tutoring service based in Suffolk,
- Virginia. I offer high-engagement remote appointments through Zoom. A limited
- number of in-person appointments are also available for students in the Harbour
- View region of Suffolk, VA. Most of my offerings are one-on-one, and siblings
- and pre-existing groups of students may opt for group meetings. No matter your
- budget, I am confident that we can find an arrangement that will provide your
- student services without creating financial strain. </p>
+ Virginia. I offer high-engagement remote appointments through Zoom. A limited
+ number of in-person appointments are also available for students in the Harbour
+ View region of Suffolk, VA. Most of my offerings are one-on-one, and siblings
+ and pre-existing groups of students may opt for group meetings. No matter your
+ budget, I am confident that we can find an arrangement that will provide your
+ student services without creating financial strain. </p>
<p>
I invite you to explore my site to learn more about the <a href="/#offerings">services I offer</a>, <a href="/about">my background</a>,
@@ -337,17 +337,17 @@ include('header.php');
</tr>
<tr>
<th scope="col"><a href="#offering-evals">Simplified Homeschool Evaluations</a></th>
- <td >$45</td>
+ <td>$45</td>
</tr>
<tr>
<th scope="col"><a href="#offering-evals">Detailed Homeschool Evaluations</a></th>
- <td >$80+</td>
+ <td>$80+</td>
</tr>
</tbody>
</table>
<h3>
-<p><em>*In-person pricing for students in the Harbour View region of Suffolk is $10/hr more in each category.</em></p>
+ <p><em>*In-person pricing for students in the Harbour View region of Suffolk is $10/hr more in each category.</em></p>
<a href="/policies">See a list of my policies and procedures regarding scheduling,
payment, and booking.</a>
</h3>
@@ -358,13 +358,16 @@ include('header.php');
<section id="contact">
<form class="card" action="/#contact" method="post">
<h2>Contact</h2>
- <label for="name">Name</label>
+ <label for="name">Name*</label>
<input name="name" type="text" id="name" placeholder="Jane Doe" required />
- <label for="email">Email Address</label>
+ <label for="email">Email Address*</label>
<input name="email" type="email" id="email" placeholder="jdoe85@aol.com" required />
- <label for="body">Question/Comment</label>
+ <label for="phone">Phone Number</label>
+ <input name="phone" type="tel" id="phone" pattern="^\s*\(?[0-9]{3}\)?\s*[-.\s]?[0-9]{3}[-.\s]?[0-9]{4}$" maxlength="11" placeholder="7573357555" title="e.g., (757) 335-7555 , 757-335-7555, 7573357555" />
+
+ <label for="body">Question/Comment*</label>
<textarea name="body" id="body" placeholder="Briefly describe your inquiry, including any services or areas of study you're interested in." required></textarea>
<textarea name="beehive" id="beehive" placeholder="Please leave this field blank."></textarea>
@@ -389,6 +392,7 @@ include('header.php');
}
$email = $_POST['email'];
+ $phone = $_POST['phone'];
$smtpuser = file_get_contents('/var/carpentertutoring/smtpuser');
$smtppass = file_get_contents('/var/carpentertutoring/smtppass');
@@ -405,7 +409,7 @@ include('header.php');
$mail->setFrom($email, $name);
$mail->addAddress($address);
$mail->addReplyTo($email);
- $mail->Subject = 'Tutoring Inquiry from ' . $email;
+ $mail->Subject = "Tutoring Inquiry from $email $phone";
$mail->Body = $body;
if (!$mail->send()) {
@@ -416,7 +420,7 @@ include('header.php');
echo "Your message was successfully sent.";
}
} else {
- echo 'Send us a message and we`ll reply by mail as soon as possible. Please note that your email address will not be stored on our system; it will only be used to contact you with a reply. You may also send mail directly to <a href="mailto:amy@carpentertutoring.com">Amy@CarpenterTutoring.com</a>.';
+ echo 'Send us a message and we`ll reply by mail or phone as soon as possible. Please note that your personal data will not be stored on our system; it will only be used to contact you with a reply. You may also send mail directly to <a href="mailto:amy@carpentertutoring.com">Amy@CarpenterTutoring.com</a>.';
}
?>
</form>
@@ -429,7 +433,7 @@ include('header.php');
<div class="card">
<h2>C.L. Cannon</h2>
<blockquote>
-I hired Amy to complete an end-of-the-year evaluation for both of my Elementary aged sons. This being our first year of independent home instruction, the task of testing and/or evaluation was daunting! Amy put my fears to rest! She was super easy to work with, had great communication skills, and answered all my questions in a timely and informative manner! I would highly recommend her services!
+ I hired Amy to complete an end-of-the-year evaluation for both of my Elementary aged sons. This being our first year of independent home instruction, the task of testing and/or evaluation was daunting! Amy put my fears to rest! She was super easy to work with, had great communication skills, and answered all my questions in a timely and informative manner! I would highly recommend her services!
</blockquote>
<p>
<a href="https://goo.gl/maps/kC4aTuFqpiyLCJ2r8">View on Google</a>