Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
283 views
in Technique[技术] by (71.8m points)

Addon for Contact Form 7 WordPress Plugin, for this functionality. Please suggest

I want to develop a CF7 plugin that can:

1 – Prepopulate form fields from a custom database table.

2 – On form submit, saves field to the same database table.

An Approach I can think of: Include a hidden field in the form with SQL like

SELECT Name, Email, Hobbies FROM Tab1
– or –
UPDATE table1 SET column1 = value1, column2 = value2 WHERE condition

Question 1: Is there a better approach that you can suggest?

Question 2: With the hidden field I can get the form field values, but how will I pre-populate form-fields with those values (when the form loads)?

Thanks.

question from:https://stackoverflow.com/questions/65840343/addon-for-contact-form-7-wordpress-plugin-for-this-functionality-please-sugges

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...