close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Before & after submit form data in email

Thread began 11/07/2011 6:34 pm by Dennis | Last modified 11/10/2011 4:38 pm by Dennis | 517 views | 4 replies |

Dennis

Before & after submit form data in email

Hi,

With the user update page created by the SA Wizard, is it possible to include the current form data along with the updated form data in the UA email sent when the form is submitted.

Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

For each of the Text fields on the page that are used to edit the form data, create a hidden field. The updateable text boxes use a column from the recordset as the initial value, do the same for the hidden fields.

This way the hidden fields will post the original data, the visible text fields will post the changes.

you can use Universal Email to send the email message, select the option to create a file for the email, and select one of the templates, and the form data will automatically be used in the email massage body.

Sign in to reply to this post

Dennis

Thanks Jason,

I don't have the knowledge to be able to do what you suggest without asking for additional help. I don't know what part of the existing code is used to echo the initial value and what part updates the database.

Here is the code for one of my updatable Text fields (State)

php:
<input type="text" class="WAATKTextField" name="State" id="State" value="<?php echo(str_replace('"''&quot;'$row_WAATKmemberaccounts['State'])); ?>" size="32" />


would you please give me the code you would suggest for the hidden field?

Also, we chose to NOT allow members to change their first & last name, but I would like to include the names in the UE email. I do display it on the form using (for the first name)

php:
<?php echo($row_WAATKmemberaccounts['First_Name']); ?>


can you please help me to add it in the UE email.

Thanks,
Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

the database gets updated by what is entered into the form fields.


the WAATKmemberaccounts recordset contains bindings for the original data

piece of the original data you want to include in the email, create a hidden form element, and bind the inital value to the corresponding column from the WAATKmemberaccounts recordset in the bindings panel.

when adding the universal email behavior, select the option to create a file for the email, this will automatically add code to the email to loop through all of the form fields and add them to the email,

this will show the data from the visible text boxes where changes can be made, and the data from the hidden form elements as well, which will contain the original values from the database.

Sign in to reply to this post

Dennis

Jason,

I Got it working.

Thanks,
Dennis

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...