Navigation:  Sites & Actions > Forms - Recipient management > Forms > Example form: Amend a profile >

Creating a form to save data

Previous pageReturn to chapter overviewNext page

As soon as a subscriber confirms changes made in the previous form by clicking Submit, a script on the OpenEMM server evaluates data from the individual entry fields. The script reads both visible and hidden fields. It is intended to save all data read in the database. This is what a second form will do. The name of the form is already specified within the first form:

<input type="hidden" name="agnFN" value="SaveProfile">:

You will therefore need to create a new form named SaveProfile.

1.In the navigation bar, click on the Forms button and then on New form. In the Name field, enter SaveProfile (or the name you gave the first form in your HTML code). Under Description, enter a short description to the effect that the form saves data read from another form. This will make it easier to manage forms if you have many of them.
2.In the top Action drop-down list, select Save user as the action type. This is the action you defined previously in chapter "Creating a new action". If you gave the action a different name, you will have to select that from the drop-down list.
3.In our example, the entry box Success form only takes a short message confirming that the changed data submitted were saved, e.g. Your profile has been saved! or words to that effect. What you write here and how you format it – for instance with HTML tags – is up to you; you could also include a link to your company website.
4.In our example, the text in the Error form field is also very short. In practice, you should include at least an email address or a phone number customers can call in case of queries.
5.The bottom Action drop-down list is set to No action in our example. You could, for example, select to send the subscriber an email confirming the changes made to his or her customer data record. This action must have been defined in the Actions section.
6.Click on Save to store your entries in OpenEMM.
Fig. 8.7: The form causes changes in the customer data record read from the previous form to be saved in the database.

Fig. 8.7: The form causes changes in the customer data record read from the previous form to be saved in the database.