You would need to add some extra code by hand top achieve this. The code added by universal Email will look like:
<?php
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["UserEmail"]))?$_POST["UserEmail"]:"") ."";include("WA_Universal_Email/WAUE_users_Registration_1.php");
//Send Mail All Entries
if ("".((isset($_GET["accesscheck"]))?$_GET["accesscheck"]:"users_Profile.php") .""!="") {
header("Location: ".((isset($_GET["accesscheck"]))?$_GET["accesscheck"]:"users_Profile.php") ."");
}
}
?>
If you have checkboxes named "approved" and "completed" with a checked value of 1:
<input name="approved" type="checkbox" id="approved" value="1" />
<input name="completed" type="checkbox" id="completed" value="1" />
you can add an additional if statement around the UE code to send the email if only approved is checked:
<?php if(isset($_POST['approved']) && $_POST['approved'] =="1") { ?>
<?php
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["UserEmail"]))?$_POST["UserEmail"]:"") ."";include("WA_Universal_Email/WAUE_users_Registration_1.php");
//Send Mail All Entries
if ("".((isset($_GET["accesscheck"]))?$_GET["accesscheck"]:"users_Profile.php") .""!="") {
header("Location: ".((isset($_GET["accesscheck"]))?$_GET["accesscheck"]:"users_Profile.php") ."");
}
}
?>
<?php } ?>
or both are checked:
<?php if((isset($_POST['approved']) && $_POST['approved'] =="1") && (isset($_POST['completed']) && $_POST['completed'] =="1")) { ?>
<?php
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["UserEmail"]))?$_POST["UserEmail"]:"") ."";include("WA_Universal_Email/WAUE_users_Registration_1.php");
//Send Mail All Entries
if ("".((isset($_GET["accesscheck"]))?$_GET["accesscheck"]:"users_Profile.php") .""!="") {
header("Location: ".((isset($_GET["accesscheck"]))?$_GET["accesscheck"]:"users_Profile.php") ."");
}
}
?>
<?php } ?>