【发布时间】:2013-04-08 16:19:46
【问题描述】:
我想添加一个提交或保存按钮,将客户的答案添加到数据库表“时事通讯”。有人知道该怎么做吗?客户将已登录以获取其他详细信息以添加到表格中,我也许可以自己弄清楚。
<div id="newsletter-settings">
<h3 style="margin-left:0; padding:0; font-size:14px; background:none; margin:0;">Your Newsletter Settings</h3>
<p>You can edit your newsletter preferences by checking the boxes below to suit your requirements.</p>
<form method="post">
<label for="recieve-newsletter">Do you wish to receive the Make A Will Now email newsletter?</label>
<input type="radio" name="recieve-newsletter" value="Yes" /><span>Yes</span>
<input type="radio" name="recieve-newsletter" value="No" style="margin-left:20px;" /><span>No, not at the moment</span>
<label for="newsletter-partners" style="margin-top:20px;">Do you wish to receive emails from carefully selected partners?</label>
<input type="radio" name="newsletter-partners" value="Yes" /><span>Yes</span>
<input type="radio" name="newsletter-partners" value="No" style="margin-left:20px;" /><span>No, not at the moment</span>
</form>
</div>
【问题讨论】:
-
你用的是mysql db吗?您是否在页面中连接了数据库并且只需要查询?
-
在餐桌时事通讯中,您只存储客户的回答?
-
我可以从 users 表中获取他们的姓名、电子邮件地址和 ID。我也想知道如何添加保存按钮,这样他们就不需要继续回答问题了。我对 html 不熟悉。
标签: html database forms post newsletter