I am trying to create a form that a site visitor can use to send information to a registered user whose data has been saved in a database.
In this form, among other fields, the site visitor is to fill a field (field name: username) requesting the username of the concerned registered user. In the form there is also an hidden field (field name: email) that I desire to be populated from the database.
My intention is for the data that the site visitor will provide in the username field to trigger the hidden field (field name: email) to be populated with the email in the database related to the provided username. So that when the form is submitted, the email function can send the form to the email in this hidden field, acting as the dynamic to.
The database name is reviewdata, Model ID is off, the field to be populated have thesame field name in the database record.
Can this be achieved? Please how can I use database load to achieve this? To be more specific, what do I fill into the options below, and please help me with the conditions i should use.
1. Fields (list of fields to read, comma separated)
2. Order (the returned records order fields list, comma separated)
3. Conditions
Thank you in advance
In this form, among other fields, the site visitor is to fill a field (field name: username) requesting the username of the concerned registered user. In the form there is also an hidden field (field name: email) that I desire to be populated from the database.
My intention is for the data that the site visitor will provide in the username field to trigger the hidden field (field name: email) to be populated with the email in the database related to the provided username. So that when the form is submitted, the email function can send the form to the email in this hidden field, acting as the dynamic to.
The database name is reviewdata, Model ID is off, the field to be populated have thesame field name in the database record.
Can this be achieved? Please how can I use database load to achieve this? To be more specific, what do I fill into the options below, and please help me with the conditions i should use.
1. Fields (list of fields to read, comma separated)
2. Order (the returned records order fields list, comma separated)
3. Conditions
Thank you in advance