close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email and Dynamic Drop Down

Thread began 5/28/2011 8:47 pm by kevin389160 | Last modified 6/07/2011 8:47 am by Jason Byrnes | 2737 views | 7 replies |

kevin389160

Universal Email and Dynamic Drop Down

How do I get Universal Email to send emails to a list in Dynamic Dropdown? I've tried sending to the list in Dynamic Dropdown and also making the To field in my form a list and populating it from Dynamic Dropdown, but nothing seems to work. I've also tried to but in a static value in the list to see if I could get UE to send it and it wouldn't. Can UE send emails addresses that are in a list? If this is possible, how can I do it as I need to send from a list from Dynamic Dropdown?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

make sure that the name of the multiple select list ends with "[]", for example:

<select name="toAddresses[]" size="5" multiple="multiple" id="toAddresses">
<option value="one@domain.com">email one</option>
<option value="two@domain.com">email two</option>
<option value="three@domain.com">email three</option>
<option value="four@domain.com">email four</option>
<option value="five@domain.com">email five</option>
</select>




In universal email, when you bind to the email address form element, it will include the "[]} in the binding code:

php:
<?php echo((isset($_POST["toAddresses[]"]))?$_POST["toAddresses[]"]:""?>


these should be removed from the binding code:

php:
<?php echo((isset($_POST["toAddresses"]))?$_POST["toAddresses"]:""?>




then add the following code at line 1:

php:
<?php

if($_SERVER["REQUEST_METHOD"] == "POST")     {
    foreach(
$_POST as $key => $val) {
        if(
is_array($_POST[$key])) $_POST[$key] = implode(", "$_POST[$key]);
    }
}
?>
Sign in to reply to this post

kevin389160

The code that you asked me to put at line 1. Do you want me to put it before the database connection as that is one line 1 on my email form page with Dynamic Dropdowns?

Sign in to reply to this post

Jason ByrnesWebAssist

that code should be at line 1, it should be the first code block on the page.

Sign in to reply to this post

kevin389160

Thanks, that worked perfectly.

Now I have a questions that is on this same form but with the Dynamic Dropdown part. I am wanting to filter the Recordset that will fill the first List in my Dyanmic Dropdown. I want to fill in a text field that will be the form variable that filters the recordset. I already set the recordset to form variable and to begins with. Now how do I do the rest?

Sign in to reply to this post

Jason ByrnesWebAssist

See the following for details on filtering a recordset by a form variable:

simple_search_feature03.html

Sign in to reply to this post

kevin389160

Thanks Jason for your help, it's really helped and been a blessing.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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