1

当我提交表单时,我会在邮箱中收到回复,但我看到类似..

错误:谢谢!我提交后。

这是我的代码:

<form action="./submitted.html" name="contact-form" method="POST" role="form" class="php-email-form"
    data-netlify="true">
    <div class="row">
        <div class="form-group col-md-6">
            <label for="name">Your Name</label>
            <input type="text" name="name" class="form-control" id="name" required>
        </div>
        <div class="form-group col-md-6">
            <label for="name">Your Email</label>
            <input type="email" class="form-control" name="email" id="email" required>
        </div>
    </div>
    <div class="form-group">
        <label for="name">Subject</label>
        <input type="text" class="form-control" name="subject" id="subject" required>
    </div>
    <div class="form-group">
        <label for="name">Message</label>
        <textarea class="form-control" name="message" rows="10" required></textarea>
    </div>
    <div class="my-3">
        <div class="loading">Loading</div>
        <div class="error-message"></div>
        <div class="sent-message">Your message has been sent. Thank you!</div>
    </div>
    <div class="text-center"><button type="submit">Send Message</button></div>
</form>

这是我在提交表单后看到的输出。 表单提交后的输出

我不知道我是如何收到错误消息的:成功消息之前的单词

4

0 回答 0