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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Is it possible to send 5 emails from update page?

Thread began 9/19/2011 7:06 am by Jedi | Last modified 9/20/2011 4:38 pm by Jedi | 1498 views | 12 replies |

eyoung296270

Is it possible to send 5 emails from update page?

I am trying to have the update page send one of 5 different emails based on a selection from a menu. I would like that selection to be the trigger for which email gets sent.
Is this possible with universal email 4?

Sign in to reply to this post

eyoung296270

To clarify request....I have a status menu in the update form that will inform a client of the status of their order. I want to send out 1 of 5 different emails based on the status that is selected. How would I change the trigger to send a specific email based on the status selection?

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to hand edit the trigger code to accomplish this. the basic Submit button pressed trigger will look like this:

php:
if (isset($_POST["submit"])) {




you will need to edit that to use the select list and add a comparison, for example if one of the values posted by the list is "one":

php:
if (isset($_POST["selectListName"]) && $_POST["selectListName"] == "one") {
Sign in to reply to this post

Jedi

I'm doing something wrong. I keep getting just a blank page after upload. The status select list is pulling from a recordset, and I'm using the update form status field name.
Anyway below is what I listed and I get a blank page.

if (!isset($_SESSION))session_start();
if (isset($_POST["OrderStatus"])$_POST["OrderStatus"] == "1"); {

Sign in to reply to this post

Jason ByrnesWebAssist

a blank page means there is a syntax error.

add the following code at line 1 to turn on error reporting:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

Jedi

That is what is strange about that. i have that code on line 1 and I still get a blank page. The page is 500 internal server error

Sign in to reply to this post

Jedi

I am attaching a copy of the page

Attached Files
orders_Update.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the problem is caused by the semi colon in your if statement:

if (isset($_POST["OrderStatus"])$_POST["OrderStatus"] == "1"); {




this should be:

php:
if (isset($_POST["OrderStatus"])$_POST["OrderStatus"] == "1") {
Sign in to reply to this post

Jedi

I have tried it without it and get the same result.

Sign in to reply to this post

Jason ByrnesWebAssist

you need spaces between the if statement and you need to add an AND clause to the second one:

php:
if (!isset($_SESSION)) session_start();

if (isset($_POST["OrderStatus"]) && $_POST["OrderStatus"] == "1") {
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...