admin管理员组文章数量:1410705
I want to build a webapp using wordpress to manage the fornt-end templating and data input. the app will display a wizard, a map to locate the user and a for to insert some information about the location. I will also add a search form that will look from the data inserted by users and will display the results if found. My question is, how I can save some data to the wordpress database, is there any specific function to let wordpress manage the form inputs? I need to create a separate database table or I can rely on the existing wordpress database tables structure? Can anyone point me into the right direction? I don't have any code sample at the moment, this because I want to understand first how to proceed with the custom form that will be showed to the user to collect the data. Thank you.
I want to build a webapp using wordpress to manage the fornt-end templating and data input. the app will display a wizard, a map to locate the user and a for to insert some information about the location. I will also add a search form that will look from the data inserted by users and will display the results if found. My question is, how I can save some data to the wordpress database, is there any specific function to let wordpress manage the form inputs? I need to create a separate database table or I can rely on the existing wordpress database tables structure? Can anyone point me into the right direction? I don't have any code sample at the moment, this because I want to understand first how to proceed with the custom form that will be showed to the user to collect the data. Thank you.
Share Improve this question edited Dec 30, 2019 at 20:19 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Dec 30, 2019 at 18:10 sialfasialfa 32910 silver badges29 bronze badges1 Answer
Reset to default 0It's totally depends on your sow. You can choose custom table to insert custom data and that's need so much code like mysql query to insert data and fetching data using the same approach. If you feel comfortable with those approach you can look for wordpress WPDB.
But to me if you want to build a system which store data from the custom form and stores on the table and display on the wordpress admin panel as well then you might need to go with wordpress default conventional tables. By using custom post type. In this way you can easily display the stored data in the admin dashboard as well as admin can easily change , delete it. And that's a default features.
本文标签: Save and retrive data from a custom form to database
版权声明:本文标题:Save and retrive data from a custom form to database 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744870119a2629577.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论