UE not working when form included
Hi,
I have UE working great on all forms excpet for a form I have <?php include ('myform.php'); ?>
I start by setting up the form in the myform.php page then when all set up I copy the below into line 1 of the page the myform.php is being included in. Im just not getting any emails at all - it is redirecting ok.
<?php require_once("WA_Universal_Email/mail_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if ((isset($_POST["button_x"]))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["email"]))?$_POST["email"]:"") ."";include("WA_Universal_Email/WAUE_hosting_plans_1.php");
//Send Mail All Entries
if ("contact_success.php"!="") {
header("Location: contact_success.php");
}
}
?>
ANother issue i have is that once a form has been added how do I edit the form without having to edit in code mode?
Thanks