[英]How to integrate a custom form and add/edit/delete on wordpress
i want to create a custom form with some fields that i could add/edit/delete on database 我想创建一个自定义表单,其中包含一些我可以在数据库中添加/编辑/删除的字段
how integrate my form with wordpress? 如何将我的表格与wordpress整合?
do you know a website ,that have a tutorial about this process ? 您是否知道一个网站,该网站提供有关此过程的教程?
thanks 谢谢
There are plugins that allow you to create custom forms ( cformsII ), and with some additional PHP knowledge you can retrieve the data using their API. 有一些插件可让您创建自定义表单( cformsII ),并且借助一些其他PHP知识,您可以使用其API检索数据。 I found this tutorial that quickly goes through installing, configuring and retrieving data from this plugin.
我发现本教程可以快速完成从该插件安装,配置和检索数据的过程 。 That same page also listed some additional forms plugins that are worth looking at.
该页面还列出了一些其他值得关注的表单插件。
Another option is to do this using HTML and PHP without the use of a plugin. 另一个选择是使用HTML和PHP而不使用插件来执行此操作。 The following link will give you some insight in how to start and some code that can get you started:
以下链接将为您提供有关如何启动的一些见解,以及一些可以帮助您入门的代码:
http://www.paulmc.org/whatithink/2009/02/05/using-wordpress-templates-to-create-forms/ http://www.paulmc.org/whatithink/2009/02/05/using-wordpress-templates-to-create-forms/
Note: There is a plugin called Formidable but only the Pro version allows you to easily retrieve the data from the database. 注意:有一个名为Formidable的插件,但是只有Pro版本允许您轻松地从数据库检索数据。
This is a really involved question, so it shouldn't be asked here. 这是一个真正涉及的问题,因此不应该在这里提出。
PS Not specific to WordPress but http://teamtutorials.com/web-development-tutorials/php-tutorials/inserting-data-into-a-mysql-database-using-php PS并非特定于WordPress,而是http://teamtutorials.com/web-development-tutorials/php-tutorials/inserting-data-into-a-mysql-database-using-php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.