我的表单答案未附加到电子邮件

时间:2016-06-10 14:36:02

标签: html forms mailto

我在脚本中编写了一个简单的问题列表,当用户点击提交时,我需要通过电子邮件在txt文件中返回回复。文件的前端工作,电子邮件创建但表单不发布。任何人都可以帮助这个脚本吗?

下面列出的编码:

<form action="mailto:test@yahoo.com?subject=Test" id="form" method="post" name="form" >


<!-- PAGE HEADER -->

    <table bgcolor=#D1DEE5>
        <tr>
            <td  width="833px"align="center">
                <input class="title" name="Title" value="Customer Satisfaction Survey">
            </td>
        </tr>
    </table>

<!-- QUESTIONS -->
    <p>

    <table>
        <tr>
            <td>
                <p> Welcome message
                    <p> 

                    </ul>
            </td>
        </tr>
    </table>
    <br>
        <table>
        <tr class="shaded">
            <td align="left">
                <p><b>Please tell us based on your experience, how satisfied you are with the following services:</b>
            </td>
            <td align="center" width="50px">Very satisfied</td>
            <td align="center" width="50px">Satisfied</td>
            <td align="center" width="50px">Dissatisfied</td>
            <td align="center" width="50px">Very Dissatisfied</td>
            <td align="center" width="50px">N/A</td>

        </tr>
        <tr>
            <td>A</td>
            <td align="center" width="50px"><input type="radio" name="q1" value="Very satisfied"></td>
            <td align="center" width="50px"><input type="radio" name="q1" value="Satisfied"></td>
            <td align="center" width="50px"><input type="radio" name="q1" value="Dissatisfied"></td>
            <td align="center" width="50px"><input type="radio" name="q1" value="Very Dissatisfied"></td>
            <td align="center" width="50px"><input type="radio" name="q1" value="N/A"></td>

        </tr>

    </table>
    <br>
    <table class="outlineTable" bgcolor=#D1DEE5>
        <tr>
            <td align="left" rowspan=5 width=500 style="vertical-align:top" style="padding-top:5px">
                <p><b>Please add comments to explain your answers</b>
                <br><textarea name="Comments10" id="Comments10" rows="7" cols="55"></textarea>
            </td>
            <td align="left">
                Month being scored
            </td>
            <td align="left" class="submitButton">
                <input class="name" name="Month">
            </td>
        </tr>
        <tr>
            <td align="left">
                Name
            </td>
            <td align="left" class="submitButton">
                <input class="name" name="Name">
            </td>
        </tr>

        <tr>
            <td align="left">
                Date
            </td>
            <td align="left" class="submitButton">
                <input class="name" name="Date">
            </td>
        </tr>
        <tr>
            <td align="left">
            </td>
            <td align="left" class="submitButton">
                <input class="button2" type="submit" value="Click here to submit results">
            </td>
        </tr>
    </table>
    <br>
    <table bgcolor=#D1DEE5>
        <tr>
            <td align="center">
                <h1>    Many thanks for taking the time to complete this survey
            </td>
        </tr>
    </table>

    <p>

    </form>

</body>
</html>

0 个答案:

没有答案