Contact Form-7下拉列表未填充数据库

时间:2012-02-05 作者:Anders Kitson

我正在使用联系人表格7和DB分机的联系人表格。我的表格有以下代码。然而,当我只提交名称和地址来填充数据库时,4个下拉菜单甚至没有一列。不确定他们为什么不填充数据库?

<p>Select a day<br />
[select date id:day "Monday" "Teusday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday"]
</p>
<p>And a date<br />
[select date id:date class:date "1st" "2nd" "3rd" "4th" "5th" "6th" "7th" "8th" "9th" "10th" "11th" "12th" "13th" "14th" "15th" "16th" "17th" "18th" "19th" "20th" "21st" "22nd" "23rd" "24th" "25th" "26th" "27th" "28th" "29th" "30th" "31st"]
</p>
<p>Time<br />
[select date id:time class:time "10:00am" "10:30am" "11:00am" "11:30am" "12:00am" "12:30am" "1:00pm" "1:30pm" "2:00pm" "2:30pm" "3:00pm" "3:30pm" "4:00pm" ]
</p>
<p>How Many Bottles<br />
[select date id:bottles class:bottles "50" "60" "70" "80" "90" "100" "110" "120" "130" "140""150" ]
</p>
<p>Your Name</p><br />
[text name id:name]
</p>
<p>Your Address</p><br />
[text address id:address]
</p>

1 个回复
最合适的回答,由SO网友:elke_wtf 整理而成

我认为问题很可能是您为所有3个选定字段指定了相同的识别名称“日期”。给他们每个人一个唯一的名字,这将解决你的问题。

结束

相关推荐

Corrupt Wordpress Database

我认为这是最奇怪的文字印刷问题。一个拥有大量帖子数据库的客户网站已经有了自己的想法。前一分钟一切似乎都很好,接下来的帖子、类别和标签都不见了。此时仪表板告诉我9个类别中有2309个帖子,但当我单击admin中的categories链接时,列表中没有任何帖子。我可以在admin中看到所有帖子,但尽管它们过去被分配到类别并列出标签,但现在它们都“未分类”,没有标签。很明显,wordpress数据库在某种程度上已经损坏,但从哪里开始尝试修复呢!?以下是我迄今为止测试的内容:插件–我关闭了所有当前的插件。主题–我

Contact Form-7下拉列表未填充数据库 - 小码农CODE - 行之有效找到问题解决它

Contact Form-7下拉列表未填充数据库

时间:2012-02-05 作者:Anders Kitson

我正在使用联系人表格7和DB分机的联系人表格。我的表格有以下代码。然而,当我只提交名称和地址来填充数据库时,4个下拉菜单甚至没有一列。不确定他们为什么不填充数据库?

<p>Select a day<br />
[select date id:day "Monday" "Teusday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday"]
</p>
<p>And a date<br />
[select date id:date class:date "1st" "2nd" "3rd" "4th" "5th" "6th" "7th" "8th" "9th" "10th" "11th" "12th" "13th" "14th" "15th" "16th" "17th" "18th" "19th" "20th" "21st" "22nd" "23rd" "24th" "25th" "26th" "27th" "28th" "29th" "30th" "31st"]
</p>
<p>Time<br />
[select date id:time class:time "10:00am" "10:30am" "11:00am" "11:30am" "12:00am" "12:30am" "1:00pm" "1:30pm" "2:00pm" "2:30pm" "3:00pm" "3:30pm" "4:00pm" ]
</p>
<p>How Many Bottles<br />
[select date id:bottles class:bottles "50" "60" "70" "80" "90" "100" "110" "120" "130" "140""150" ]
</p>
<p>Your Name</p><br />
[text name id:name]
</p>
<p>Your Address</p><br />
[text address id:address]
</p>

1 个回复
最合适的回答,由SO网友:elke_wtf 整理而成

我认为问题很可能是您为所有3个选定字段指定了相同的识别名称“日期”。给他们每个人一个唯一的名字,这将解决你的问题。

相关推荐

Replace domain in database

我的网站受到攻击,所以基本上所有的核心php文件都已损坏。只剩下数据库。现在我在本地主机中进行了尝试。如果我想从这个数据库恢复我的站点,域名是我唯一需要替换字符串的东西吗</我找到了这个教程-Replace string in database - 更改所有表中的域字符串,但几乎不知道将其放入何处以及如何在wordpress中触发它