diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-03-28 21:49:45 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-03-28 21:49:45 -0400 |
commit | 2546852f0a04c8ea01d66c2e80c65ef4d83907d7 (patch) | |
tree | 9cb229a95d2b62cf7c348b14a4693aeb07cfca84 | |
parent | 655b681bedb3a83fc46566e6b857fae117eb1c93 (diff) | |
download | edwinmattiacci.com-2546852f0a04c8ea01d66c2e80c65ef4d83907d7.tar.gz edwinmattiacci.com-2546852f0a04c8ea01d66c2e80c65ef4d83907d7.tar.bz2 edwinmattiacci.com-2546852f0a04c8ea01d66c2e80c65ef4d83907d7.zip |
views/contact: Use isset to avoid undefined variable warning
-rw-r--r-- | views/contact.view.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/views/contact.view.php b/views/contact.view.php index 0d95665..61b3a62 100644 --- a/views/contact.view.php +++ b/views/contact.view.php @@ -1,8 +1,6 @@ <?php require __DIR__ . '/partials/header.php'; ?> -<?php require __DIR__ . '/partials/navigator.php'; ?> - - <?php if ($formSuccess) : ?> + <?php if (isset($formSuccess)) : ?> <div class="bg-teal-lightest border-t-4 border-blue rounded-b text-teal-darkest px-4 py-3 shadow-md" role="alert"> <div class="flex"> @@ -16,7 +14,7 @@ <?php endif; ?> <div> - <h1 class="text-3xl" style="color: #FF6978;">Contact</h1> + <h1 class="text-3xl text-red-light">Contact</h1> <br> <h2 class="text-xl font-normal text-grey-darkest leading-normal"> Interested in collaborating together? @@ -47,16 +45,16 @@ <label class="block uppercase tracking-wide text-grey-darker text-xs font-bold mb-2" for="email"> - Email + Email (∗) </label> <input class="shadow-md appearance-none block w-full bg-grey-lightest text-grey-darker - border <?php echo $border = $emailError ? 'border-red' : 'border-grey-lighter';?> + border <?php echo $border = isset($emailError) ? 'border-red' : 'border-grey-lighter';?> rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-grey" name="26472" id="email" type="email" required="required" value="<?php echo $email ?? '' ?>"> - <?php if ($emailError) : ?> + <?php if (isset($emailError)) : ?> <p class="text-red text-xs"><?php echo $emailError ?></p> <?php endif; ?> @@ -67,7 +65,7 @@ <div class="w-full px-3"> <label class="block uppercase tracking-wide text-grey-darker text-xs font-bold mb-2" for="message"> - Message + Message (∗) </label> <textarea class="shadow-md appearance-none block w-full bg-grey-lightest text-grey-darker border border-grey-lighter |