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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…