Insert peoblem

i created a 3 multi page form using sessions to pass form data from page to page, On the final page i used the inser record wizard to insert all data into the database. all other fied were inserted except the date column. when i change the the date coulum datatype to vacar, the date shows...but when i change it to date data type nothing displays except "00-00-0000". below is my code.pls note the date field as that is where my problem is. how should my form date field insert the date in the databse date column. pls  help thanks
my code:
PAGE 1
<?php require_once('Connections/crusader.php'); ?>
<?php
//MX Widgets3 include
require_once('includes/wdg/WDG.php');
// Load the common classes
require_once('includes/common/KT_common.php');
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
// Make unified connection variable
$conn_crusader = new KT_connection($crusader, $database_crusader);
// Start trigger
$formValidation = new tNG_FormValidation();
$formValidation->addField("cap_firstname", true, "text", "", "", "", "");
$formValidation->addField("cap_lastname", true, "text", "", "", "", "");
$formValidation->addField("cap_corrAdd", true, "text", "", "", "", "");
$formValidation->addField("cap_email", true, "text", "email", "", "", "");
$formValidation->addField("cap_mobilephone", true, "text", "phone", "", "", "");
$formValidation->addField("cap_occupation", true, "text", "", "", "", "");
$tNGs->prepareValidation($formValidation);
// End trigger
//start Trigger_Custom trigger
function Trigger_Custom(&$tNG) {
session_start();
$_SESSION['form']['cap_title'] = $tNG->getColumnValue("cap_title");
$_SESSION['form']['cap_firstname'] = $tNG->getColumnValue("cap_firstname");
$_SESSION['form']['cap_lastname'] = $tNG->getColumnValue("cap_lastname");
$_SESSION['form']['cap_dateofbirth'] = $tNG->getColumnValue("cap_dateofbirth");
$_SESSION['form']['cap_sex'] = $tNG->getColumnValue("cap_sex");
$_SESSION['form']['cap_marital'] = $tNG->getColumnValue("cap_marital");
$_SESSION['form']['cap_corrAdd'] = $tNG->getColumnValue("cap_corrAdd");
$_SESSION['form']['cap_email'] = $tNG->getColumnValue("cap_email");
$_SESSION['form']['cap_mobilephone'] = $tNG->getColumnValue("cap_mobilephone");
$_SESSION['form']['cap_occupation'] = $tNG->getColumnValue("cap_occupation");
//end Trigger_Custom trigger
// Make a custom transaction instance
$customTransaction = new tNG_custom($conn_crusader);
$tNGs->addTransaction($customTransaction);
// Register triggers
$customTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Custom1");
$customTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$customTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "cap2.php");
$customTransaction->registerTrigger("AFTER", "Trigger_Custom", 50);
// Add columns
$customTransaction->addColumn("cap_title", "STRING_TYPE", "POST", "cap_title");
$customTransaction->addColumn("cap_firstname", "STRING_TYPE", "POST", "cap_firstname");
$customTransaction->addColumn("cap_lastname", "STRING_TYPE", "POST", "cap_lastname");
$customTransaction->addColumn("cap_dateofbirth", "DATE_TYPE", "POST", "cap_dateofbirth", "{NOW}");
$customTransaction->addColumn("cap_sex", "STRING_TYPE", "POST", "cap_sex");
$customTransaction->addColumn("cap_marital", "STRING_TYPE", "POST", "cap_marital");
$customTransaction->addColumn("cap_corrAdd", "STRING_TYPE", "POST", "cap_corrAdd");
$customTransaction->addColumn("cap_email", "STRING_TYPE", "POST", "cap_email");
$customTransaction->addColumn("cap_mobilephone", "STRING_TYPE", "POST", "cap_mobilephone");
$customTransaction->addColumn("cap_occupation", "STRING_TYPE", "POST", "cap_occupation");
// End of custom transaction instance
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rscustom = $tNGs->getRecordset("custom");
$row_rscustom = mysql_fetch_assoc($rscustom);
$totalRows_rscustom = mysql_num_rows($rscustom);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wdg="http://ns.adobe.com/addt">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="dhtmlwindow.css" type="text/css" />
<script type="text/javascript" src="dhtmlwindow.js">
</script>
<link rel="stylesheet" href="modalfiles/modal.css" type="text/css" />
<script type="text/javascript" src="modalfiles/modal.js"></script>
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<script src="includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
<style type="text/css">
<!--
body,td,th {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    font-weight: bold;
-->
</style>
<script type="text/javascript" src="includes/common/js/sigslot_core.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js.php"></script>
<script type="text/javascript" src="includes/wdg/classes/Calendar.js"></script>
<script type="text/javascript" src="includes/wdg/classes/SmartDate.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar-setup_stripped.js"></script>
<script src="includes/resources/calendar.js"></script>
<script>
var mysurvey=dhtmlmodal.open("surveybox", "iframe", "agreement.htm", "", "width=300px,height=250px,resize=1,scrolling=1,center=1", "recal")
mysurvey.onclose=function(){
var iframedoc=this.contentDoc
alert(iframedoc.body.innerHTML) //alert entire body content of iframe
alert(iframedoc.getElementById("myname").value) //alert value of form field with id="myname"
</script>
</head>
<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0">
<table width="327" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="325" valign="top"><form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
      <table align="center" cellpadding="2" cellspacing="0" class="KT_tngtable">
          <tr bgcolor="#990000">
            <td colspan="2" bgcolor="#990000"><span class="white">Step 1: Get Started </span></td>
          </tr>
          <tr>
            <td width="134" class="KT_th"><label for="cap_title">Title:</label></td>
            <td width="200"><select name="cap_title" id="cap_title">
              <option value="Mr" <?php if (!(strcmp("Mr", KT_escapeAttribute($row_rscustom['cap_title'])))) {echo "SELECTED";} ?>>Mr</option>
              <option value="Mrs" <?php if (!(strcmp("Mrs", KT_escapeAttribute($row_rscustom['cap_title'])))) {echo "SELECTED";} ?>>Mrs</option>
              <option value="Chief" <?php if (!(strcmp("Chief", KT_escapeAttribute($row_rscustom['cap_title'])))) {echo "SELECTED";} ?>>Chief</option>
              <option value="Alhaji" <?php if (!(strcmp("Alhaji", KT_escapeAttribute($row_rscustom['cap_title'])))) {echo "SELECTED";} ?>>Alhaji</option>
            </select>
              <?php echo $tNGs->displayFieldError("custom", "cap_title"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_firstname">First Name:</label></td>
            <td><input type="text" name="cap_firstname" id="cap_firstname" value="<?php echo KT_escapeAttribute($row_rscustom['cap_firstname']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_firstname");?> <?php echo $tNGs->displayFieldError("custom", "cap_firstname"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_lastname">Last Name:</label></td>
            <td><input type="text" name="cap_lastname" id="cap_lastname" value="<?php echo KT_escapeAttribute($row_rscustom['cap_lastname']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_lastname");?> <?php echo $tNGs->displayFieldError("custom", "cap_lastname"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_dateofbirth">Date of Birth:</label></td>
            <td><input name="cap_dateofbirth" id="cap_dateofbirth" value="<?php echo KT_escapeAttribute($row_rscustom['cap_dateofbirth']); ?>" size="24" wdg:mondayfirst="false" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="no" />
            <?php echo $tNGs->displayFieldHint("cap_dateofbirth");?> <?php echo $tNGs->displayFieldError("custom", "cap_dateofbirth"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_sex_1">Sex:</label></td>
            <td><div>
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rscustom['cap_sex']),"Male"))) {echo "@@checked@@";} ?> type="radio" name="cap_sex" id="cap_sex_1" value="Male" />
              <label for="cap_sex_1">Male</label>
                <input <?php if (!(strcmp(KT_escapeAttribute($row_rscustom['cap_sex']),"Female"))) {echo "@@checked@@";} ?> type="radio" name="cap_sex" id="cap_sex_2" value="Female" />
                <label for="cap_sex_2">Female</label>
                <?php echo $tNGs->displayFieldError("custom", "cap_sex"); ?></div>
              <div></div></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_marital">Marital Status:</label></td>
            <td><select name="cap_marital" id="cap_marital">
              <option value="Single" <?php if (!(strcmp("Single", KT_escapeAttribute($row_rscustom['cap_marital'])))) {echo "SELECTED";} ?>>Single</option>
              <option value="Married" <?php if (!(strcmp("Married", KT_escapeAttribute($row_rscustom['cap_marital'])))) {echo "SELECTED";} ?>>Married</option>
              <option value="Divorced" <?php if (!(strcmp("Divorced", KT_escapeAttribute($row_rscustom['cap_marital'])))) {echo "SELECTED";} ?>>Divorced</option>
            </select>
              <?php echo $tNGs->displayFieldError("custom", "cap_marital"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_corrAdd">Correspondence Address:</label></td>
            <td><textarea name="cap_corrAdd" id="cap_corrAdd" cols="20" rows="3"><?php echo KT_escapeAttribute($row_rscustom['cap_corrAdd']); ?></textarea>
              <?php echo $tNGs->displayFieldHint("cap_corrAdd");?> <?php echo $tNGs->displayFieldError("custom", "cap_corrAdd"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_email">Email Address:</label></td>
            <td><input type="text" name="cap_email" id="cap_email" value="<?php echo KT_escapeAttribute($row_rscustom['cap_email']); ?>" size="32" />              <?php echo $tNGs->displayFieldError("custom", "cap_email"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_mobilephone">Mobile Phone:</label></td>
            <td><input type="text" name="cap_mobilephone" id="cap_mobilephone" value="<?php echo KT_escapeAttribute($row_rscustom['cap_mobilephone']); ?>" size="32" />              <?php echo $tNGs->displayFieldError("custom", "cap_mobilephone"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_occupation">Occupation:</label></td>
            <td><input type="text" name="cap_occupation" id="cap_occupation" value="<?php echo KT_escapeAttribute($row_rscustom['cap_occupation']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_occupation");?> <?php echo $tNGs->displayFieldError("custom", "cap_occupation"); ?></td>
          </tr>
          <tr class="KT_buttons">
            <td colspan="2"><input type="submit" name="KT_Custom1" id="KT_Custom1" value="Continue&gt;&gt;" /></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<?php
    echo $tNGs->getErrorMsg();
?>
</body>
</html>
PAGE 2
<?php require_once('Connections/crusader.php'); ?>
<?php
//MX Widgets3 include
require_once('includes/wdg/WDG.php');
// Load the common classes
require_once('includes/common/KT_common.php');
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
// Make unified connection variable
$conn_crusader = new KT_connection($crusader, $database_crusader);
// Start trigger
$formValidation = new tNG_FormValidation();
$tNGs->prepareValidation($formValidation);
// End trigger
//start Trigger_Custom trigger
function Trigger_Custom(&$tNG) {
session_start();
$_SESSION['form']['cap_sumassured'] = $tNG->getColumnValue("cap_sumassured");
$_SESSION['form']['cap_policyterm'] = $tNG->getColumnValue("cap_policyterm");
$_SESSION['form']['cap_commdate'] = $tNG->getColumnValue("cap_commdate");
$_SESSION['form']['cap_premium'] = $tNG->getColumnValue("cap_premium");
$_SESSION['form']['cap_frequencyp'] = $tNG->getColumnValue("cap_frequencyp");
$_SESSION['form']['cap_modep'] = $tNG->getColumnValue("cap_modep");
$_SESSION['form']['cap_targetamount'] = $tNG->getColumnValue("cap_targetamount");
$_SESSION['form']['cap_livecover'] = $tNG->getColumnValue("cap_livecover");
$_SESSION['form']['cap_regularsavings'] = $tNG->getColumnValue("cap_regularsavings");
$_SESSION['form']['cap_benefit'] = $tNG->getColumnValue("cap_benefit");
$_SESSION['form']['cap_lifepolicy'] = $tNG->getColumnValue("cap_lifepolicy");
$_SESSION['form']['cap_nameinsurer'] = $tNG->getColumnValue("cap_nameinsurer");
$_SESSION['form']['cap_totalsumassured'] = $tNG->getColumnValue("cap_totalsumassured");
$_SESSION['form']['cap_specialpolicy'] = $tNG->getColumnValue("cap_specialpolicy");
//end Trigger_Custom trigger
// Make a custom transaction instance
$customTransaction = new tNG_custom($conn_crusader);
$tNGs->addTransaction($customTransaction);
// Register triggers
$customTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Custom1");
$customTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$customTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "cap3.php");
$customTransaction->registerTrigger("AFTER", "Trigger_Custom", 50);
// Add columns
$customTransaction->addColumn("cap_sumassured", "STRING_TYPE", "POST", "cap_sumassured");
$customTransaction->addColumn("cap_policyterm", "STRING_TYPE", "POST", "cap_policyterm");
$customTransaction->addColumn("cap_commdate", "DATE_TYPE", "POST", "cap_commdate");
$customTransaction->addColumn("cap_premium", "STRING_TYPE", "POST", "cap_premium");
$customTransaction->addColumn("cap_frequencyp", "STRING_TYPE", "POST", "cap_frequencyp");
$customTransaction->addColumn("cap_modep", "STRING_TYPE", "POST", "cap_modep");
$customTransaction->addColumn("cap_targetamount", "STRING_TYPE", "POST", "cap_targetamount");
$customTransaction->addColumn("cap_livecover", "STRING_TYPE", "POST", "cap_livecover");
$customTransaction->addColumn("cap_regularsavings", "STRING_TYPE", "POST", "cap_regularsavings");
$customTransaction->addColumn("cap_benefit", "STRING_TYPE", "POST", "cap_benefit");
$customTransaction->addColumn("cap_lifepolicy", "STRING_TYPE", "POST", "cap_lifepolicy");
$customTransaction->addColumn("cap_nameinsurer", "STRING_TYPE", "POST", "cap_nameinsurer");
$customTransaction->addColumn("cap_totalsumassured", "STRING_TYPE", "POST", "cap_totalsumassured");
$customTransaction->addColumn("cap_specialpolicy", "STRING_TYPE", "POST", "cap_specialpolicy");
// End of custom transaction instance
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rscustom = $tNGs->getRecordset("custom");
$row_rscustom = mysql_fetch_assoc($rscustom);
$totalRows_rscustom = mysql_num_rows($rscustom);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wdg="http://ns.adobe.com/addt">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<script src="includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
<script type="text/javascript" src="includes/common/js/sigslot_core.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js.php"></script>
<script type="text/javascript" src="includes/wdg/classes/Calendar.js"></script>
<script type="text/javascript" src="includes/wdg/classes/SmartDate.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar-setup_stripped.js"></script>
<script src="includes/resources/calendar.js"></script>
</head>
<body topmargin="0" leftmargin="0" bottommargin="0">
<table width="348" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="346" height="406" valign="top"><form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
        <table align="center" cellpadding="2" cellspacing="0" class="KT_tngtable">
          <tr>
            <td colspan="2" bgcolor="#990000"><span class="white">Step 2: </span></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_sumassured">Sum Assured:</label></td>
            <td><input type="text" name="cap_sumassured" id="cap_sumassured" value="<?php echo KT_escapeAttribute($row_rscustom['cap_sumassured']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_sumassured");?> <?php echo $tNGs->displayFieldError("custom", "cap_sumassured"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_policyterm">Policy Term:</label></td>
            <td><input type="text" name="cap_policyterm" id="cap_policyterm" value="<?php echo KT_escapeAttribute($row_rscustom['cap_policyterm']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_policyterm");?> <?php echo $tNGs->displayFieldError("custom", "cap_policyterm"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_commdate">Commencement Date:</label></td>
            <td><input name="cap_commdate" id="cap_commdate" value="<?php echo KT_escapeAttribute($row_rscustom['cap_commdate']); ?>" size="24" wdg:mondayfirst="false" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="no" />
              <?php echo $tNGs->displayFieldHint("cap_commdate");?> <?php echo $tNGs->displayFieldError("custom", "cap_commdate"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_premium">Premium:</label></td>
            <td><input type="text" name="cap_premium" id="cap_premium" value="<?php echo KT_escapeAttribute($row_rscustom['cap_premium']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_premium");?> <?php echo $tNGs->displayFieldError("custom", "cap_premium"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_frequencyp">Frequency of premium payment:</label></td>
            <td><select name="cap_frequencyp" id="cap_frequencyp">
              <option value="Annual" <?php if (!(strcmp("Annual", KT_escapeAttribute($row_rscustom['cap_frequencyp'])))) {echo "SELECTED";} ?>>Annual</option>
              <option value="Bi-Annual" <?php if (!(strcmp("Bi-Annual", KT_escapeAttribute($row_rscustom['cap_frequencyp'])))) {echo "SELECTED";} ?>>Bi-Annual</option>
              <option value="Quaterly" <?php if (!(strcmp("Quaterly", KT_escapeAttribute($row_rscustom['cap_frequencyp'])))) {echo "SELECTED";} ?>>Quaterly</option>
              <option value="Monthly" <?php if (!(strcmp("Monthly", KT_escapeAttribute($row_rscustom['cap_frequencyp'])))) {echo "SELECTED";} ?>>Monthly</option>
              <option value="Single" <?php if (!(strcmp("Single", KT_escapeAttribute($row_rscustom['cap_frequencyp'])))) {echo "SELECTED";} ?>>Single</option>
            </select>
              <?php echo $tNGs->displayFieldError("custom", "cap_frequencyp"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_modep">Mode of payment:</label></td>
            <td><select name="cap_modep" id="cap_modep">
              <option value="Direct Debit" <?php if (!(strcmp("Direct Debit", KT_escapeAttribute($row_rscustom['cap_modep'])))) {echo "SELECTED";} ?>>Direct Debit</option>
              <option value="Cash" <?php if (!(strcmp("Cash", KT_escapeAttribute($row_rscustom['cap_modep'])))) {echo "SELECTED";} ?>>Cash</option>
              <option value="Cheque" <?php if (!(strcmp("Cheque", KT_escapeAttribute($row_rscustom['cap_modep'])))) {echo "SELECTED";} ?>>Cheque</option>
            </select>
              <?php echo $tNGs->displayFieldError("custom", "cap_modep"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_targetamount">Target Amount:</label></td>
            <td><input type="text" name="cap_targetamount" id="cap_targetamount" value="<?php echo KT_escapeAttribute($row_rscustom['cap_targetamount']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_targetamount");?> <?php echo $tNGs->displayFieldError("custom", "cap_targetamount"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_livecover">Live cover Amount:</label></td>
            <td><input type="text" name="cap_livecover" id="cap_livecover" value="<?php echo KT_escapeAttribute($row_rscustom['cap_livecover']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_livecover");?> <?php echo $tNGs->displayFieldError("custom", "cap_livecover"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_regularsavings">Amount of regular savings proposed:</label></td>
            <td><input type="text" name="cap_regularsavings" id="cap_regularsavings" value="<?php echo KT_escapeAttribute($row_rscustom['cap_regularsavings']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_regularsavings");?> <?php echo $tNGs->displayFieldError("custom", "cap_regularsavings"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_benefit">Nominated Bnefitiaries:</label></td>
            <td><textarea name="cap_benefit" id="cap_benefit" cols="20" rows="3"><?php echo KT_escapeAttribute($row_rscustom['cap_benefit']); ?></textarea>
              <?php echo $tNGs->displayFieldHint("cap_benefit");?> <?php echo $tNGs->displayFieldError("custom", "cap_benefit"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_livepolicy">Do you have life assurance policy/ policies:</label></td>
            <td><input type="text" name="cap_livepolicy" id="cap_livepolicy" value="<?php echo KT_escapeAttribute($row_rscustom['cap_livepolicy']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_livepolicy");?> <?php echo $tNGs->displayFieldError("custom", "cap_livepolicy"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_nameinsurer">If yes , name of insurer:</label></td>
            <td><input type="text" name="cap_nameinsurer" id="cap_nameinsurer" value="<?php echo KT_escapeAttribute($row_rscustom['cap_nameinsurer']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_nameinsurer");?> <?php echo $tNGs->displayFieldError("custom", "cap_nameinsurer"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_totalsumassured">Total sum assured:</label></td>
            <td><input type="text" name="cap_totalsumassured" id="cap_totalsumassured" value="<?php echo KT_escapeAttribute($row_rscustom['cap_totalsumassured']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_totalsumassured");?> <?php echo $tNGs->displayFieldError("custom", "cap_totalsumassured"); ?></td>
          </tr>
          <tr>
            <td colspan="2" class="KT_th">Has any proposal on your life ever been declined, postponed, defered,<br />
withdrawn or accepted on special term? Please give details below:</td>
          </tr>
          <tr>
            <td colspan="2"><textarea name="cap_specialpolicy" id="cap_specialpolicy" cols="23" rows="3"><?php echo KT_escapeAttribute($row_rscustom['cap_specialpolicy']); ?></textarea>
            <?php echo $tNGs->displayFieldHint("cap_specialpolicy");?> <?php echo $tNGs->displayFieldError("custom", "cap_specialpolicy"); ?></td>
          </tr>
          <tr class="KT_buttons">
            <td colspan="2"><input type="submit" name="KT_Custom1" id="KT_Custom1" value="Continue&gt;&gt;" /></td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
<?php
    echo $tNGs->getErrorMsg();
?>
</body>
</html>
PAGE 3
<?php require_once('Connections/crusader.php'); ?>
<?php
//MX Widgets3 include
require_once('includes/wdg/WDG.php');
// Load the common classes
require_once('includes/common/KT_common.php');
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
// Make unified connection variable
$conn_crusader = new KT_connection($crusader, $database_crusader);
// Start trigger
$formValidation = new tNG_FormValidation();
$formValidation->addField("cap_terms", true, "", "", "", "", "");
$tNGs->prepareValidation($formValidation);
// End trigger
//start Trigger_Custom trigger
function Trigger_Custom(&$tNG) {
session_start();
$cap_title= $_SESSION['form']['cap_title'];
$tNG->addColumn("cap_title","STRING_TYPE","VALUE",$cap_title);
$cap_firstname = $_SESSION['form']['cap_firstname'];
$tNG->addColumn("cap_firstname","STRING_TYPE","VALUE",$cap_firstname);
$cap_lastname = $_SESSION['form']['cap_lastname'];
$tNG->addColumn("cap_lastname","STRING_TYPE","VALUE",$cap_lastname);
$cap_dateofbirth = $_SESSION['form']['cap_dateofbirth'];
$tNG->addColumn("cap_dateofbirth","DATE_TYPE","VALUE",$cap_dateofbirth);
$cap_sex = $_SESSION['form']['cap_sex'];
$tNG->addColumn("cap_sex","STRING_TYPE","VALUE",$cap_sex);
$cap_marital = $_SESSION['form']['cap_marital'];
$tNG->addColumn("cap_marital","STRING_TYPE","VALUE",$cap_marital);
$cap_corrAdd = $_SESSION['form']['cap_corrAdd'];
$tNG->addColumn("cap_corrAdd","STRING_TYPE","VALUE",$cap_corrAdd);
$cap_email = $_SESSION['form']['cap_email'];
$tNG->addColumn("cap_email","STRING_TYPE","VALUE",$cap_email);
$cap_mobilephone = $_SESSION['form']['cap_mobilephone'];
$tNG->addColumn("cap_mobilephone","STRING_TYPE","VALUE",$cap_mobilephone);
$cap_occupation = $_SESSION['form']['cap_occupation'];
$tNG->addColumn("cap_occupation","STRING_TYPE","VALUE",$cap_occupation);
$cap_sumassured = $_SESSION['form']['cap_sumassured'];
$tNG->addColumn("cap_sumassured","STRING_TYPE","VALUE",$cap_sumassured);
$cap_policyterm = $_SESSION['form']['cap_policyterm'];
$tNG->addColumn("cap_policyterm","STRING_TYPE","VALUE",$cap_policyterm);
$cap_commdate = $_SESSION['form']['cap_commdate'];
$tNG->addColumn("cap_commdate","DATE_TYPE","VALUE",$cap_commdate);
$cap_premium = $_SESSION['form']['cap_premium'];
$tNG->addColumn("cap_premium","STRING_TYPE","VALUE",$cap_premium);
$cap_frequencyp = $_SESSION['form']['cap_frequencyp'];
$tNG->addColumn("cap_frequencyp","STRING_TYPE","VALUE",$cap_frequencyp);
$cap_modep = $_SESSION['form']['cap_modep'];
$tNG->addColumn("cap_modep","STRING_TYPE","VALUE",$cap_modep);
$cap_targetamount = $_SESSION['form']['cap_targetamount'];
$tNG->addColumn("cap_targetamount","STRING_TYPE","VALUE",$cap_targetamount);
$cap_livecover = $_SESSION['form']['cap_livecover'];
$tNG->addColumn("cap_livecover","STRING_TYPE","VALUE",$cap_livecover);
$cap_regularsavings = $_SESSION['form']['cap_regularsavings'];
$tNG->addColumn("cap_regularsavings","STRING_TYPE","VALUE",$cap_regularsavings);
$cap_benefit = $_SESSION['form']['cap_benefit'];
$tNG->addColumn("cap_benefit","STRING_TYPE","VALUE",$cap_benefit);
$cap_lifepolicy = $_SESSION['form']['cap_lifepolicy'];
$tNG->addColumn("cap_lifepolicy","STRING_TYPE","VALUE",$cap_lifepolicy);
$cap_nameinsurer = $_SESSION['form']['cap_nameinsurer'];
$tNG->addColumn("cap_nameinsurer","STRING_TYPE","VALUE",$cap_nameinsurer);
$cap_totalsumassured = $_SESSION['form']['cap_totalsumassured'];
$tNG->addColumn("cap_totalsumassured","STRING_TYPE","VALUE",$cap_totalsumassured);
$cap_specialpolicy = $_SESSION['form']['cap_specialpolicy'];
$tNG->addColumn("cap_specialpolicy","STRING_TYPE","VALUE",$cap_specialpolicy);
$cap_username = $_SESSION['form']['cap_username'];
$tNG->addColumn("cap_username","STRING_TYPE","VALUE",$cap_username);
//end Trigger_Custom trigger
// Make an insert transaction instance
$ins_capital = new tNG_insert($conn_crusader);
$tNGs->addTransaction($ins_capital);
// Register triggers
$ins_capital->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
$ins_capital->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$ins_capital->registerTrigger("END", "Trigger_Default_Redirect", 99, "capdone.php");
$ins_capital->registerTrigger("BEFORE", "Trigger_Custom", 50);
// Add columns
$ins_capital->setTable("capital");
$ins_capital->addColumn("cap_hospital", "STRING_TYPE", "POST", "cap_hospital");
$ins_capital->addColumn("cap_height", "STRING_TYPE", "POST", "cap_height");
$ins_capital->addColumn("cap_weight", "STRING_TYPE", "POST", "cap_weight");
$ins_capital->addColumn("cap_pregnant", "STRING_TYPE", "POST", "cap_pregnant");
$ins_capital->addColumn("cap_expectedD", "STRING_TYPE", "POST", "cap_expectedD");
$ins_capital->addColumn("cap_smoke", "STRING_TYPE", "POST", "cap_smoke");
$ins_capital->addColumn("cap_tuberculosis", "CHECKBOX_YN_TYPE", "POST", "cap_tuberculosis", "N");
$ins_capital->addColumn("cap_epilepsy", "CHECKBOX_YN_TYPE", "POST", "cap_epilepsy", "N");
$ins_capital->addColumn("cap_heartd", "CHECKBOX_YN_TYPE", "POST", "cap_heartd", "N");
$ins_capital->addColumn("cap_insanity", "CHECKBOX_YN_TYPE", "POST", "cap_insanity", "N");
$ins_capital->addColumn("cap_diabetes", "CHECKBOX_YN_TYPE", "POST", "cap_diabetes", "N");
$ins_capital->addColumn("cap_other", "STRING_TYPE", "POST", "cap_other");
$ins_capital->addColumn("cap_skin", "CHECKBOX_YN_TYPE", "POST", "cap_skin", "N");
$ins_capital->addColumn("cap_highsweat", "CHECKBOX_YN_TYPE", "POST", "cap_highsweat", "N");
$ins_capital->addColumn("cap_weightloss", "CHECKBOX_YN_TYPE", "POST", "cap_weightloss", "N");
$ins_capital->addColumn("cap_glands", "CHECKBOX_YN_TYPE", "POST", "cap_glands", "N");
$ins_capital->addColumn("cap_diarrhea", "CHECKBOX_YN_TYPE", "POST", "cap_diarrhea", "N");
$ins_capital->addColumn("cap_stds", "CHECKBOX_YN_TYPE", "POST", "cap_stds", "N");
$ins_capital->addColumn("cap_leisure", "STRING_TYPE", "POST", "cap_leisure");
$ins_capital->addColumn("cap_outnigeria", "STRING_TYPE", "POST", "cap_outnigeria");
$ins_capital->addColumn("cap_terms", "CHECKBOX_YN_TYPE", "POST", "cap_terms", "N");
$ins_capital->setPrimaryKey("cap_id", "NUMERIC_TYPE");
// Make an insert transaction instance
$ins_capital = new tNG_insert($conn_crusader);
$tNGs->addTransaction($ins_capital);
// Register triggers
$ins_capital->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
$ins_capital->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$ins_capital->registerTrigger("END", "Trigger_Default_Redirect", 99, "capdone.php");
$ins_capital->registerTrigger("BEFORE", "Trigger_Custom", 50);
// Add columns
$ins_capital->setTable("capital");
$ins_capital->addColumn("cap_hospital", "STRING_TYPE", "POST", "cap_hospital");
$ins_capital->addColumn("cap_height", "STRING_TYPE", "POST", "cap_height");
$ins_capital->addColumn("cap_dateofbirth", "DATE_TYPE", "POST", "cap_dateofbirth");
$ins_capital->addColumn("cap_weight", "STRING_TYPE", "POST", "cap_weight");
$ins_capital->addColumn("cap_pregnant", "STRING_TYPE", "POST", "cap_pregnant");
$ins_capital->addColumn("cap_expectedD", "STRING_TYPE", "POST", "cap_expectedD");
$ins_capital->addColumn("cap_smoke", "STRING_TYPE", "POST", "cap_smoke");
$ins_capital->addColumn("cap_tuberculosis", "CHECKBOX_YN_TYPE", "POST", "cap_tuberculosis", "N");
$ins_capital->addColumn("cap_epilepsy", "CHECKBOX_YN_TYPE", "POST", "cap_epilepsy", "N");
$ins_capital->addColumn("cap_heartd", "CHECKBOX_YN_TYPE", "POST", "cap_heartd", "N");
$ins_capital->addColumn("cap_insanity", "CHECKBOX_YN_TYPE", "POST", "cap_insanity", "N");
$ins_capital->addColumn("cap_diabetes", "CHECKBOX_YN_TYPE", "POST", "cap_diabetes", "N");
$ins_capital->addColumn("cap_other", "STRING_TYPE", "POST", "cap_other");
$ins_capital->addColumn("cap_skin", "CHECKBOX_YN_TYPE", "POST", "cap_skin", "N");
$ins_capital->addColumn("cap_highsweat", "CHECKBOX_YN_TYPE", "POST", "cap_highsweat", "N");
$ins_capital->addColumn("cap_weightloss", "CHECKBOX_YN_TYPE", "POST", "cap_weightloss", "N");
$ins_capital->addColumn("cap_glands", "CHECKBOX_YN_TYPE", "POST", "cap_glands", "N");
$ins_capital->addColumn("cap_diarrhea", "CHECKBOX_YN_TYPE", "POST", "cap_diarrhea", "N");
$ins_capital->addColumn("cap_stds", "CHECKBOX_YN_TYPE", "POST", "cap_stds", "N");
$ins_capital->addColumn("cap_leisure", "STRING_TYPE", "POST", "cap_leisure");
$ins_capital->addColumn("cap_outnigeria", "STRING_TYPE", "POST", "cap_outnigeria");
$ins_capital->addColumn("cap_terms", "CHECKBOX_YN_TYPE", "POST", "cap_terms", "N");
$ins_capital->setPrimaryKey("cap_id", "NUMERIC_TYPE");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rscapital = $tNGs->getRecordset("capital");
$row_rscapital = mysql_fetch_assoc($rscapital);
$totalRows_rscapital = mysql_num_rows($rscapital);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wdg="http://ns.adobe.com/addt">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<script src="includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
<script type="text/javascript" src="includes/common/js/sigslot_core.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js.php"></script>
<script type="text/javascript" src="includes/wdg/classes/Calendar.js"></script>
<script type="text/javascript" src="includes/wdg/classes/SmartDate.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar-setup_stripped.js"></script>
<script src="includes/resources/calendar.js"></script>
<style type="text/css">
<!--
@import url("layout.css");
-->
</style>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
//-->
</script>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="449" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="447" valign="top"><form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
      <table align="center" cellpadding="2" cellspacing="0" class="KT_tngtable">
          <tr>
            <td colspan="2" bgcolor="#990000"><span class="white">Final Step: </span></td>
          </tr>
          <tr>
            <td width="244" class="KT_th"><label for="cap_hospital">Hospital Details:</label></td>
            <td width="193"><textarea name="cap_hospital" id="cap_hospital" cols="22" rows="3"><?php echo KT_escapeAttribute($row_rscapital['cap_hospital']); ?></textarea>
              <?php echo $tNGs->displayFieldHint("cap_hospital");?> <?php echo $tNGs->displayFieldError("capital", "cap_hospital"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_height">What is your height:</label></td>
            <td><input type="text" name="cap_height" id="cap_height" value="<?php echo KT_escapeAttribute($row_rscapital['cap_height']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_height");?> <?php echo $tNGs->displayFieldError("capital", "cap_height"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_weight">What is your weight:</label></td>
            <td><input type="text" name="cap_weight" id="cap_weight" value="<?php echo KT_escapeAttribute($row_rscapital['cap_weight']); ?>" size="32" />
              <?php echo $tNGs->displayFieldHint("cap_weight");?> <?php echo $tNGs->displayFieldError("capital", "cap_weight"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_pregnant_1">Are you pregnant(Female)?:</label></td>
            <td><div>
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_pregnant']),"Yes"))) {echo "@@checked@@";} ?> type="radio" name="cap_pregnant" id="cap_pregnant_1" value="Yes" />
              <label for="cap_pregnant_1">Yes</label>
                <input <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_pregnant']),"No"))) {echo "@@checked@@";} ?> type="radio" name="cap_pregnant" id="cap_pregnant_2" value="No" />
                <label for="cap_pregnant_2">No</label>
                <?php echo $tNGs->displayFieldError("capital", "cap_pregnant"); ?></div>
              <div></div></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_expectedD">If yes what is expected month of delivery:</label></td>
            <td><input name="cap_expectedD" id="cap_expectedD" value="<?php echo KT_escapeAttribute($row_rscapital['cap_expectedD']); ?>" size="22" wdg:mondayfirst="false" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="no" />
              <?php echo $tNGs->displayFieldHint("cap_expectedD");?> <?php echo $tNGs->displayFieldError("capital", "cap_expectedD"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_smoke_1">Have you smoke cigarette in the past 12 months:</label></td>
            <td><div>
              <input <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_smoke']),"Yes"))) {echo "@@checked@@";} ?> type="radio" name="cap_smoke" id="cap_smoke_1" value="Yes" />
              <label for="cap_smoke_1">Yes</label>
                <input <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_smoke']),"No"))) {echo "@@checked@@";} ?> type="radio" name="cap_smoke" id="cap_smoke_2" value="No" />
                <label for="cap_smoke_2">No</label>
                <?php echo $tNGs->displayFieldError("capital", "cap_smoke"); ?></div>
              <div></div></td>
          </tr>
          <tr>
            <td colspan="2">Have you suffered or are suffering from any of the following:</td>
          </tr>
          <tr>
            <td colspan="2"><table width="421" cellspacing="0" cellpadding="0">
              <tr class="KT_tngtable">
                <td width="81" class="KT_th"><label for="cap_tuberculosis">Tuberculosis:</label></td>
                <td width="63"><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_tuberculosis']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_tuberculosis" id="cap_tuberculosis" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_tuberculosis"); ?></td>
                <td width="10"> </td>
                <td width="68" class="KT_th"><span class="KT_th">Insanity:</span></td>
                <td width="197"><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_insanity']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_insanity" id="cap_insanity" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_insanity"); ?></td>
              </tr>
              <tr class="KT_tngtable">
                <td class="KT_th"><label for="cap_epilepsy">Epilepsy:</label></td>
                <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_epilepsy']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_epilepsy" id="cap_epilepsy" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_epilepsy"); ?></td>
                <td> </td>
                <td class="KT_th"><span class="KT_th">Diabetes:</span></td>
                <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_diabetes']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_diabetes" id="cap_diabetes" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_diabetes"); ?></td>
              </tr>
              <tr class="KT_tngtable">
                <td class="KT_th"><label for="cap_heartd">Heart Disease:</label></td>
                <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_heartd']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_heartd" id="cap_heartd" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_heartd"); ?></td>
                <td> </td>
                <td class="KT_th"><span class="KT_th">Others:</span></td>
                <td><input type="text" name="cap_other" id="cap_other" value="<?php echo KT_escapeAttribute($row_rscapital['cap_other']); ?>" size="32" />
                  <?php echo $tNGs->displayFieldHint("cap_other");?> <?php echo $tNGs->displayFieldError("capital", "cap_other"); ?></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td colspan="2">Have you ever had?</td>
          </tr>
          <tr>
            <td colspan="2"><table width="400" cellspacing="0" cellpadding="0">
              <tr>
                <td width="114" class="KT_th"><span class="KT_th">Skin Disoder:</span></td>
                <td width="85"><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_skin']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_skin" id="cap_skin" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_skin"); ?></td>
                <td width="11"> </td>
                <td width="127" class="KT_th"><span class="KT_th">Swollen Glands:</span></td>
                <td width="61"><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_glands']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_glands" id="cap_glands" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_glands"); ?></td>
              </tr>
              <tr>
                <td class="KT_th"><span class="KT_th">High Sweat:</span></td>
                <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_highsweat']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_highsweat" id="cap_highsweat" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_highsweat"); ?></td>
                <td> </td>
                <td class="KT_th"><span class="KT_th">Diarrhea:</span></td>
                <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_diarrhea']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_diarrhea" id="cap_diarrhea" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_diarrhea"); ?></td>
              </tr>
              <tr>
                <td class="KT_th"><span class="KT_th">Weight Loss:</span></td>
                <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_weightloss']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_weightloss" id="cap_weightloss" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_weightloss"); ?></td>
                <td> </td>
                <td class="KT_th"><span class="KT_th">Sexually transmitted disease:</span></td>
                <td><input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_stds']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_stds" id="cap_stds" value="Y" />
                  <?php echo $tNGs->displayFieldError("capital", "cap_stds"); ?></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_leisure">What games, sports or past times do<br />
you engage in?:</label></td>
            <td><textarea name="cap_leisure" id="cap_leisure" cols="22" rows="3"><?php echo KT_escapeAttribute($row_rscapital['cap_leisure']); ?></textarea>
              <?php echo $tNGs->displayFieldHint("cap_leisure");?> <?php echo $tNGs->displayFieldError("capital", "cap_leisure"); ?></td>
          </tr>
          <tr>
            <td class="KT_th"><label for="cap_outnigeria">Do you intend to reside outside Nigeria?:</label></td>
            <td><select name="cap_outnigeria" id="cap_outnigeria">
              <option value="Yes" <?php if (!(strcmp("Yes", KT_escapeAttribute($row_rscapital['cap_outnigeria'])))) {echo "SELECTED";} ?>>Yes</option>
              <option value="No" <?php if (!(strcmp("No", KT_escapeAttribute($row_rscapital['cap_outnigeria'])))) {echo "SELECTED";} ?>>No</option>
            </select>
              <?php echo $tNGs->displayFieldError("capital", "cap_outnigeria"); ?></td>
          </tr>
          <tr>
            <td colspan="2" valign="top" onclick="MM_openBrWindow('privacy.html','Privacy','')">Please read and agree to our <a href="#">Terms of Service</a> and <a href="#">Privacy Policy,</a><br />
            and to receive important communications from us electronically.</td>
          </tr>
          <tr>
            <td colspan="2" class="KT_th"><span class="KT_th"> I Agree</span>
              <input  <?php if (!(strcmp(KT_escapeAttribute($row_rscapital['cap_terms']),"Y"))) {echo "checked";} ?> type="checkbox" name="cap_terms" id="cap_terms" value="Y" />
            <?php echo $tNGs->displayFieldError("capital", "cap_terms"); ?></td>
          </tr>
          <tr class="KT_buttons">
            <td colspan="2"><input name="KT_Insert1" type="submit" class="forms" id="KT_Insert1" value="Get Quote Now !" /></td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
<?php
    echo $tNGs->getErrorMsg();
?>
</body>
</html>

all I can see is that page 3 has a duplicate Insert Transaction that´s referencing the same fields as the first one, except "cap_dateofbirth" which is only declared in one of them:
// Make an insert transaction instance
$ins_capital = new tNG_insert($conn_crusader);
$tNGs->addTransaction($ins_capital);
Don´t know if this is the cause for your issue, but it certainly can´t hurt doing away with one of the Insert Transactions.
BTW, in some of your pages I stumble across the following:
echo "@@checked@@";
the @´s definitely shouldn´t be in there, and as far as I can recall this might point to a broken ADDT installation, as this is stuff which resides in ADDT´s internal .edml files (defines the code that Dreamweaver inserts into the document to represent the data source value) and are not meant to find their way into PHP documents created by DW.
Cheers,
Günter

Similar Messages

  • Can not insert/update data from table which is created from view

    Hi all
    I'm using Oracle database 11g
    I've created table from view as the following command:
    Create table table_new as select * from View_Old
    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
    Anybody tell me, what's happend? cause?
    Thankyou
    thiensu
    Edited by: user8248216 on May 5, 2011 8:54 PM
    Edited by: user8248216 on May 5, 2011 8:55 PM

    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK?

  • Lock-ups while inserting to a remote database using a dblink

    Our application runs across multiple instances of Oracle 8i - 8.1.6.
    Throughout the day we run some batch processes to transfer data across these instances using dblinks. Ocassionally the process locks up and further investigation shows that the server from which we are pushing information out seems to have executed an insert statement on a remote instance (insert into test_table@tst_dblink select * from local_table) and is waiting for a return from the remote server while the remote instance seems to be hanging too. Oracle does not return any error but simply waits forever for the statement to finish.
    If anybody has experienced this before can you please share any information you may have on 1. how to prevent this from happening or 2. How to make oracle give up on the transaction, roll it back and raise an error?
    Thanks a lot....

    Well, certainly we need more info to fix the problem! couple of "system states" on both the machines when the job is hanging would help. couple of "stack trace" of the shadow process will also help. please call local oracle support with the system state and stack trace.
    Sounds like the job is hanging on some resource (lock,enque,latch,io...). oracle doesn't give up for few resources, like waiting on ST,latch, io etc. we have to kill the offending process if we want!!
    just my 2 cents :)
    G

  • In ALV report  list edit a field and insert our own text

    Hi
    In a report when I am in third list using ALV a field which is disabled should be enabled and have to insert the new value in it and save.
    please tell me how to do it using classes and methods and also using ALV's.
    Promise to reward points.
    Regards
    Mac

    See these threads
    Re: Making selected alv rows editable
    Re: selective edit in ALV grid
    Regards,
    Ravi

  • Inserting Dynamic Images in to a Crystal Report 10

    Hi all,
    I am trying to insert dynamic pictures into my report from repository, by getting the path for the picture from database fields. The version that I am using is Crystal Reports 10.
    Here is what I have done.
    I inserted an OLE object into the report, went to "Format Graphics" by right clicking on the OLE object, then to "Hyperlink" Tab (as I didn't see anything other than "Reset" button and picture dimension options under the "Picture" tab), and selected "File" Radio button (as I didn't want to display the picture as Hyperlink) and gave the @Filepath as the formula there. @Filepath is the formula that gives me the complete path for the JPEG that I need to insert in the report.
    filepath = field A + field B
    where field A is the location for the image and field B is the actual image name.
    the actual image is located in repository folder.
    I am not able to see the image in the report "Preview" section as it is showing it has an empty box and when I click on that empty OLE object, I am able to view the image in a separate window where as my requirement is to view the image within the report (not in a separate window).
    I didn't find anything useful under Format Graphics -> Picture tab.
    I appreciate any kind of help from you all.
    Thanks!

    That feature wasn't available nor was it supported in CR 10. You'll have to upgrade to CR Xi R2 or 2008 to allow using a database field as the location of the file.
    CR 10 would only load the picture when the report is opened, it will never update when clicking on the refresh button.

  • I am making a calendar in iPhoto, picking photos from a folder, let's call it "2011 Pics," in iPhoto. After arranging all the photos and captions I decided I wanted to insert a new photo -- one that was not in "2011 Pics." So I inserted it into the folder

    Add new photo to existing calendar folder in iPhoto
    I am making a calendar in iPhoto, picking photos from a folder, let's call it "2011 Pics," in iPhoto. After arranging all the photos and captions I decided I wanted to insert a new photo -- one that was not in "2011 Pics." So I inserted it into the folder, but the picture does not show up on the scrolling menu of pictures at the left of the calendar-making page. This happened last year and in frustration I started all over again. But surely there is a way to add a new picture to a calendar that is already laid out.

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • L need help with textedit, I inserted a picture then the cursor went from small to the size of picture and l need to write a header next to the picture not at the bottom of it. can anyone help please?

    Can anyone tell me how to make cursor smaller after inserting picture so that l can add somethimg right next to it instead of bottom of picture. Meaning the next line is too low

    AFAIK, you can't. The nature of TextEdit is that it allows the picture to be treated as a character and adjusts the cursor size for that line.
    You need a app that supports transparent overlays.

  • How can I debug a Bulk Insert error?

    I'm loading a bunch of files into SQL server.  All work fine, but one keeps erroring out on me.  All files should be exactly the same in structure, but they have different dates, and other different financial metrics, but the structure and field
    names should be exactly the same.  Nevertheless, one keeps konking out, and throwing this error.
    Msg 4832, Level 16, State 1, Line 1
    Bulk load: An unexpected end of file was encountered in the data file.
    Msg 7399, Level 16, State 1, Line 1
    The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
    Msg 7330, Level 16, State 2, Line 1
    Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
    The ROWTERMINATOR should be CRLF, and when you look at it in Notepad++ that's what it looks like, but it must be something else, because I keep getting errors here.  I tried the good old:  ROWTERMINATOR='0x0a'
    That works on all files, but one, so there's something funky going on here, and I need to see what SQL Server is really doing.
    Is there some way to print out a log, or look at a log somewhere?
    Thanks!!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    The first thing to try is to see if BCP likes the file. BCP and BULK INSERT adhere to the same spec, but they are different implementations, but there are subtle differences.
    There is an ERRORFILE option, but it more helps when there is bad data.
    You can also use the BATCHSIZE option to see how many records in the file it swallows, before things go bad. FIRSTROW and LASTROW can also help.
    All in all, it can be quite tedious find that single row where things are different - and where BULK INSERT loses sync entirely. Keep in mind that it reads fields on by one, and it there is one field terminator to few on a line, it will consume the line
    feed at the end of the line as data.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do you insert an electronically signed report as an appendix into a main report which will be signed electronically at a later date?

    How do you insert an electronically signed report as an appendix into a main report which will be signed electronically at a later date?

    You can add it as a file attachment. Exactly how you do this depends on the version of Acrobat you're using, but if you open the Attachments panel, you should see where you can add a file.

  • How to insert a table or object image other than at bottom or report

    Please excuse my HTML ignorance. Is there a way to use a previously added tag to go back and insert a FP object at the tag location in an HTML report. The only way I can figure out how to do it would be to append the object using the report generation vis, then search the HTML document for the originally added tag, and replace this tag with the appended code.
    I append teat results as they are generated but once all tests are complete, I want to put the summary table at the top (after the header though).
    Thanks, Rick

    Hi Rick,
    There is no built-in way with the Report Generation VIs to append something to your report anywhere other than the very bottom.  I have attached a VI that shows the best way I can think of to accomplish this...it involves using an internal Report Generation VI called "Generate Report Get Data.vi" that gets the actual string that contains all your HTML from the internal data structure of the Report Generation VIs...once you have this string, you can manipulate it with the normal String functions in LabVIEW...then once you've got it manipulated the way you want, you can stick it back into your report.
    I hope this gets you started in the right direction...I saved the VI in LabVIEW 8.0 format.  Let me know if you have any other questions.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Custom_HTML_Report_Append.vi ‏31 KB

  • Error While Assigning Ad insert contract from Ad insert orders.

    Hi Experts,
    While performing the transaction for u2018Assigning Ad inserts Contracts from Ad Insert ordersu2019, Iu2019m getting the following error.
    Message no. JVSD056
    I did the following steps.
    a) Created a geographical unit.
    b) Assigned that geographical unit in the BP master of the retailer with a newly created assignment type.
    c) Linked the geographical unit in the booking unit for Ad inserts  in MAM .
    d) Created an Ad insert order in MAM by using the booking unit which has the geographical unit assignment.
    Then tried to execute the u2018Assign Ad inserts Contracts from Ad insert orders. The error message is JVSD056.
    Appreciate if anyone can help me in this. This is the first time we are doing this.
    Regards,
    Suresh

    Hi Helios,
    I hav egone through the document.However i have resolved the error ar: illegal option -- F by following the doc id Doc ID 785828.1
    Now i am facing error while relinking
    Relinking module 'FNDCORE.dll' in product fnd ...
    Removing any existing temp directory
    rm -rf temp
    creating the temp directory
    mkdir temp
    changing permissions for the temp directory
    chmod 777 temp
    Getting the object file names for this FNDCORE.dll
    gnumake -f E:/oracle/apps/apps_st/appl/admin/PROD/out/link_fnd_5136.mk fndcore.LIST
    E:/oracle/apps/apps_st/appl/admin/PROD/out/link_fnd_5136.mk:760: *** target pattern contains no `%'. Stop.
    Unable to get the objects for module "FNDCORE.dll".
    See error messages above (also recorded in log file)
    for possible reasons for the failure.
    adrelink is exiting with status 1
    Please advice
    Regards,
    SRK

  • Error while insert data using execute immediate in dynamic table in oracle

    Error while insert data using execute immediate in dynamic table created in oracle 11g .
    first the dynamic nested table (op_sample) was created using the executed immediate...
    object is
    CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
    mark1 number,
    mark2 number
    t_sub_mark is a class of type sub_mark
    CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
    create table sam1(id number,name varchar2(30));
    nested table is created below:
    begin
    EXECUTE IMMEDIATE ' create table '||op_sample||'
    (id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
    end;
    now data from sam1 table and object (subject_obj) are inserted into the dynamic table
    declare
    subject_obj t_sub_mark;
    begin
    subject_obj:= t_sub_mark();
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
    end;
    and got the below error:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7
    then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
    execute immediate 'insert into '||dynam_table ||'
    (SELECT

    887684 wrote:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
    If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically.

  • Error while insert A/R Invoice

    Good night,
    I have a problem when I insert an A/R invoice, the B1 gives the following error:
    "No matching records found 'G / L account' (OACT) (ODBC - 2028) Message 131-183"
    All 'G/L account' are set on all tabs of G/L Account Determination.
    The product is configured with the warehouse that is also configured with the accounts.
    Thanks,
    Rodrigo

    Hi
    Please take a look at this .May be this will help .
    When attempting to add a marketing document with rounding, the following error message appears: "No matching record found 'G/L Accounts' (OACT)[ODBC 2028]"
    Other terms
    Rounding, G/L account, error message, marketing documents, matching record, account, missing, SAP Business One
    Reason and Prerequisites
    There is no rounding account defined.
    Define a rounding account under:
    'Administration' > 'System Initialization' ->'G/L Account Determination' -> 'General' tab page under "Rounding Account" field.
    Thank you
    Bishal

  • Can no longer see my I-photo photos, when trying to insert photo into Word Document.

    I had some computer problems and did upgrade to Snow Leopard from Leopard. Using older MacBook Pro. 
    Now, when I try to insert a picture into a Word Document, I cannot see my photos!
    I am working in a word document, I choose "Insert Photo from my files" and when the window comes up so I can choose the photo to insert... when I select the "photos" choice under the Media section on the Left side of the box that comes up, the box to the right is BLANK, both on the top and bottom!  None of my photos come up for selection. 
    This method to choose photos to insert into documents used to work before... now it is not.  After selecting "photos" all my photos would appear in the right box, and I would move through my I-photo events to choose my saved photo and insert it.  Yes, photos are showing and present in I-photo.  They just won't appear for importing.
    This is so frustrating, not to mention time comsuming trying to figure out what is going on and how to fix it.
    Can anyone help? Please?

    Oroilore-
    I do not see a way to disable the Picture Frame icon.  I looked at Settings-Picture Frame, but none of the options turns it off.  The only way I can thinik of, would be if all of your photos had been deleted.  If there were no photos, you couldn't have a slide show!
    One thing to try is to reset (reboot) your iPad.  Hold both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  The iPad will restart after a couple of minutes.  Resetting this way will not hurt anything, and sometimes clears up mysterious problems.
    Fred

  • Creation of new button on same page after insert command

    Hello All,
    I have an application running on apex.oracle.com where my workspace name is shruti_work,username is [email protected] and password is buwigi. The application name inside this is "app2"
    I am trying to achieve one functionality there but unable to get it so felt like seeking an help from experts here. I have two forms there one page1 form which is simplly made on an html region with go button which is navigating the page 1 items value to page 2 but simply passing their address witout updting the database table.
    In Page 2 i created page on a table or view, which made some extra buttons which i dont want like applychanges ,delete button, cancel button. I created a create button even which is updating my database with insert sql command. What i am seeing is after my create button is pressed i got navigated to same page 2 which i want to but the applychange button, cancel and delete button got appeared. I dont get the idea why it is so. i have checked the buttons even i didnt found anything there.
    All i want is when i press create button in page 2, my database get update and at the same page (2) a new button get appears which i have to use for other things. Approaching to this solution i created a button with giving databse action update and condition to this button "value of item in expression 1 is not null" and in expression 1 i passed p2_id...... but my new button is not getting created.
    Any help on this?

    Hi Jeff,
    I dont want applychanges button and delete button in my page 2. But when i created form on a table or view this but got created and i cannot delete it even. When i am navigating my page from page 1 to page 2 and filling the fields in page 2 and clicking create button, at that time i want after updating my table and running my plsql process which i have created which you can see in page processing, my button at same page get generate which i will use to navigate to other form. This button which i want to generate after clicking my create button will be meaningful only if my record get inserted in table. so that is why i want it at that time.
    I dont want any report so i am not creating form on a table or view

Maybe you are looking for

  • Can't find my zen xtra in the Creative MediaSource Organi

    My Zen Xtra shows in "NOMAD Explorer" but when I try to use Creative MediaSource Organizer to transfer file from my computer to Zen xtra player, I can't found Zen xtra under "my computer" any help? My player has the latest firmware and also latest dr

  • Oracle 8.1.7 on HP UX 11.0.0 Please help..

    hi oracle gurus, I am using Oracle 8.1.7 on HP UX 11.0.0 and my application is on Solaris 2.6. I am getting exceptions as shown below. Atually the problem does NOT happen often , but we do get this issue once in a while. Could anyone give some explan

  • How could i get the material description in cost esti itemization view?

    Hi Gurus, I have created the process order (T.Code COR1) and calculate the cost & get the material costing details.but i required to see the material description (Packaging material) rather than the material code (PK01-1204) in costing itemization vi

  • Convert Photoshop images to WordPress theme

    I work as a freelancer web developer, my website is www.quleiss.com I am more into coding compared to designing. I also work as a WordPress developer. In this ever changing web development industry there is a technique to convert the photoshop image

  • How to save change log for a particular standard table in ZTABLE

    Hi Experts, Wouldlike to make one ztable in R3 which should  record changes made( say particualr field)  in standard SAP DB table ( say TXPDAT). I  think that there has to beway to do it. Could you please share the way to achieve it? Will appreciate