Hello everyone!
I keep seeing this error on my website:
Notice: Undefined index: success in /storage/ssd2/028/7379028/public_html/index.php on line 499
Notice: Undefined index: success in /storage/ssd2/028/7379028/public_html/index.php on line 503
I’m clueless!
This is a screenshot of my website:
This is my php code in index.php
<div class="map"></div>
<div class="form-box" id="form">
<div class="row">
<h2>We're happy to hear from you</h2>
</div>
<div class="row">
<form method="post" action="mailer-new.php" class="contact-form">
<div class="row">
<?php
if(isset($_GET['success'])) {
if($_GET['success'] == 1) {
echo "<div class=\"form-messages success\">Thank You! Your message has been sent.</div>";
}
if($_GET['success'] == -1) {
echo "<div class=\"form-messages error\">Oops! Something went wrong. Please try again.</div>";
}
}
?>
</div>
Here is mailer-new.php just in case: https://codepen.io/francesca829/pen/EdNdGg
By the way, should the mailer-new.php go into the public_html folder (along with index.php)?
Thank you very much, I’m really stuck!