For some reason, my Netlify form is continuing to display the standard 'Thank you" Netlify success message after submission. I believe I am following the steps perfectly, action set to the page which I want to display in the same folder but it just isn’t working. I tried setting action=“mail.php”, “/mail”, “mail”…nothing works. It is supposed to be a mail.php file correct?
Here is my form “contact.html” (website link https://hjedbksdf.tk/contact)
<!DOCTYPE html>
<form action="/mail" method="post" data-netlify-recaptcha="true" data-netlify="true">
<label for="yourname">Name<span style="color:red;">*</span></label>
<input type="text" id="yourname" name="yourname" placeholder="Your name.." required>
<label for="email">Email</label><br>
<input type="email" id="email" name="email" placeholder="Email address.."><br><br>
<label for="country">Country</label>
<select id="country" name="country">
<option value="CA">Canada</option>
</select>
<label for="comments">Message<span style="color:red;">*</span></label>
<textarea id="comments" name="comments" placeholder="Message.." style="height:170px" required></textarea>
<div class="g-recaptcha" data-sitekey="6LffYqcZAAAAANjgeAwFlNBVC-cdj3_khFLg6VDr" data-callback="enableBtn"></div>
<button type='submit' class="button" id='button1'>Send</button>
</form>
</div>
`
My mail.php is in the same folder:
<html>
<body>
Your name is: <?php echo $_POST['yourname']; ?>
Your e-mail: <?php echo $_POST['email']; ?>
Comments:<?php echo $_POST['comments']; ?>
</body>
</html>
You can test it at https://hjedbksdf.tk/contact.
Any help is appreciated.