I believe I may have confused the situation by keeping the email recordset in the file. I do not believe I need a third recordset for what I want to do. I attempted doing what you suggested but it made the email list function as another child list rather than as a target list like I want. So, I started over.
The dynamic list appears to be working correctly. I can click on the parent list and see the correct information in the child list. I can then add the emails I want into the email list.
The emails are not being transferred to the ‘to’ setting in my email. I have tested by putting an email address in the $RecipArray[$CurIndex ][] = "me@myemail.com"; section (which sends) rather than
$RecipArray[$CurIndex ][] = "".((isset($_POST["email"]))?$_POST["email"]:"") .""; (which does not send)
I assume I am still not putting the email(s) as values in the target/email list. However I believe I have set up the dynamic list correctly and am unsure where else I’m supposed to put the value.
I have the parent record set (referencing a class table) that has classID and className.
I have the child record set (referencing the userInfo table and I LEFT JOIN the classNusers link table in order to connect it with the parent record set) that has classID, userID, and email. I have joined the users table in order to filter out unwanted emails for testing purposes, but will be deleted after everything is resolved.
Thank you again for your help.