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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sending Emails to selected employees

Thread began 5/05/2016 5:35 pm by Kumel | Last modified 5/06/2016 9:50 pm by Ray Borduin | 385 views | 13 replies |

Kumel

Sending Emails to selected employees

I have form where we choose employees (checkbox) & i want to send them a email when form is submitted.

i can share ftp details to take a look at codes.
Thru this we get employee id which is used to store in mysql.
<input name="Emp_<?php echo $RepeatSelectionCounter_2; ?>" type="checkbox" id="Emp_<?php echo $RepeatSelectionCounter_2; ?>" value="<?php echo $row_UsersMachines['ID']; ?>" />

Above hidden field contains Users 'ID' How to send them emails to selected checkboxes?

Sign in to reply to this post

Ray BorduinWebAssist

You can filter a recordset with the checked values using the Database Search server behavior and then send the emails to the recordset results.

Sign in to reply to this post

Kumel

u mean using existing rs which are resulting list of employees?

Sign in to reply to this post

Kumel

how to filter a recordset with the checked values ?

Sign in to reply to this post

Ray BorduinWebAssist

DataAssist Search has a "list" search which you can use to filter based on a checkbox group. Just name the checkboxes with the same name and make sure the name ends with []

Sign in to reply to this post

Kumel

this is my checkbox: <input name="Emp_<?php echo $RepeatSelectionCounter_2; ?>" type="checkbox" id="Emp_<?php echo $RepeatSelectionCounter_2; ?>" value="<?php echo $row_UsersMachines['ID']; ?>" />


name="Emp_<?php echo $RepeatSelectionCounter_2; ?>"

will it be: " Emp_<?php echo $RepeatSelectionCounter_2; ?>[] " ?

Sign in to reply to this post

Ray BorduinWebAssist

Are you doing a multiple insert with it already?

Sign in to reply to this post

Kumel

yes it is.

Sign in to reply to this post

Ray BorduinWebAssist

In that case you would probably have to do it by hand. Loop through the post and create an array of the UserIDs and then use that to filter a recordset. I could help with something like that in a premium support ticket. Another option might be to create a recordset that gets the results of the newly inserted records and use that to send the email.

Sign in to reply to this post

Kumel

i will try to figure something out.

Sign in to reply to this post
loading

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...