close ad
Databridge V2 with MySQLi support IS Now Available!
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 11:37 am by MagsW | Last modified 3/31/2015 1:32 pm by MagsW | 1099 views | 8 replies


Hi Jason, the emails are on the standard record update page, which contains all the usual account details - name, email address etc - but also contains checkboxes to indicate how far in a signup process they've come - order received, contract signed etc. When an administrator updates the record by ticking 'order received', this sends an email to the contact telling them what to do next. Once they've done that and signed a contract, the admin person logs in again and ticks the 'contract signed' box which sends another confirmation email. However, this also resends the 'order received' email.

I've tried various methods of preventing the Order Received emails from being sent when the Contract Signed box is ticked but nothing's working - I tried this to get it to send the Order Received email only if the value in the ContractSigned column is 0:

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

I also tried this as suggested by you in this thread: as it's basically the same issue:

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

That doesn't work either - both the Order Received and Contract Signed emails get sent.

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





Ease of use


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