close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Using IF statements with Universal Email

Thread began 3/28/2015 8:37 am by Mags | Last modified 3/31/2015 10:32 am by Mags | 2122 views | 8 replies

Mags

Using IF statements with Universal Email

In my update record form I have the following checkboxes:

Order Received
Contract Signed

I have one email which is sent out when the Order Received box is ticked. I set this up as follows:

<?php if(isset($_POST['OrderReceived']) && $_POST['OrderReceived'] == "1") { ?>
[Universal Email script in here]
<?php } ?>

I have another email which is sent out when the Contract Signed box is ticked. This is set up in the same way:

<?php if(isset($_POST['ContractSigned']) && $_POST['ContractSigned'] == "1") { ?>
[Universal Email script in here]
<?php } ?>

However, I want to prevent the first email from sending again when the Contract Signed email is generated. I tried the following but it didn't work:

<?php if(isset($_POST['OrderReceived']) && $_POST['OrderReceived'] == "1") { ?>
<?php if ($row_WADAclients['ContractSigned'] == 0) { ?>
[Universal Email script in here]
<?php } ?>
<?php } ?>

Could you tell me how I can make it work so that I can stop the first email from sending again? Actually, I need to ONLY have these emails sending when the box is being physically ticked, not if any other updates are made, as there are of course other fields that could be updated at any point.

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