I found a solution but i don't know if it will affect other pages.
<?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 ("users_ThankYou.php"!="") {
header("Location: users_ThankYou.php");
}
}
?>
------------------------------------------------------------------------------
------------------------------------------------------------------------------
From the above code remove the following.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
&& (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)))
------------------------------------------------------------------------------
------------------------------------------------------------------------------
The final code will be:
------------------------------------------------------------------------------
------------------------------------------------------------------------------
<?php
if (($_SERVER["REQUEST_METHOD"] == "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 ("users_ThankYou.php"!="") {
header("Location: users_ThankYou.php");
}
}
?>
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Now it works but I don't know if it will affect any other pages.
Can you please advise?