Want to provide feedback on your Mirror kit or new boat ?

{source}
<!-- You can place html anywhere within the source tags -->
<script type="text/JavaScript">
<!--
function refresh_on_change(jsStr) { //v2.0
  return eval(jsStr)
}
function validate_form() {
    document.forms[0].submit();}
//-->
</script>
<?php
//
// when this flag is set to Yes, confirmation emails are sent to the addresses
// listed in 'variables_<year>_<event name>.php' and overrides the persons getting the
// confirmation emails when the system goes live
// $SetForConfirmationTesting = "Yes";
//
// include event specific variables
//
include_once JPATH_SITE.'/mca_code/feedback_on_purchased_item/variables_feedback_on_new_kit_or_boat.php';
//
// First thing we do is check fields, so see if they are not filled in (as you would expect), or if data is invalid. If so, reset btnSubmitForPayment to "false" and we will use this flag to decide to display the main form again
//
TestIfFieldOk( 'Uv_CustomersName', 'btnSubmitForEmail' );
TestIfFieldOk( 'Uv_EmailAddressCustomer', 'btnSubmitForEmail' );
TestIfFieldOk( 'Uv_CustomersPostCode', 'btnSubmitForEmail' );
TestIfFieldOk( 'Uv_CustomersHomePhone', 'btnSubmitForEmail' );
TestIfFieldOk( 'Uv_PurchasedItem', 'btnSubmitForEmail' );
TestIfFieldOk( 'Uv_RatingOutOfTen', 'btnSubmitForEmail' );
if ( jds_is_valid_email( $_REQUEST['Uv_EmailAddressCustomer'] ) != 1 ) { unset($_POST['btnSubmitForEmail']); }
//
// This sets the variable $ConfirmationOfInputString from the users input to the form.
//
include_once JPATH_SITE.'/mca_code/feedback_on_purchased_item/purchased_item_data_confirmation_of_input_string.php';
//
// If the submit for payment button has been clicked and data is OK, then process the following. I find this confusing because it would be more logical if the IF was the other way around.
//
if ( isset($_POST['btnSubmitForEmail']) ) {
    //
    // Send the confirmation emails
    //
    include_once JPATH_SITE.'/mca_code/feedback_on_purchased_item/email_the_data.php';
    ?>
    <p>Confirmation of information supplied </p>
    <table width="500" border="1" class="EntryFormConfirmationPrintOut">
    <?php echo $ConfirmationOfInputString ?>
    </table>
    <br>
    <p>A confirmation email has been sent to your address.</p>
    <?php
    }
else
    {
    //
    // The submit button has not been pressed, or data is missing or invalid so display form to gather the applicants data
    //
    ?>
    <p><?php echo "$Uv_ExplainationAtTopOfForm"; ?></p>
    <form id="expression_of_interest" name="expression_of_interest" action="" method="post">
    <!-- <table width="525" border="0" cellspacing="2" cellpadding="0"> -->
    <?php include JPATH_SITE.'/mca_code/feedback_on_purchased_item/data_name_and_address.php'; ?>
    <!-- disply the buttons for submitting at the base of the page -->
    <p>Information marked <span class="style1">**</span> <span class="EntryBoxTitle"> must be provided. None of the data is retained by the UK MCA website. </span></p>
    <p>
    </p>
    <?php
    if ($SetForConfirmationTesting != "")
        { ?>
          <input name="btnSubmitForEmail" class="EntryText" type="submit" id="btnSubmitForEmail" value="TEST MODE ... Please Click to test the system." />
          <br>
          <span class="EntryText"> (The Webmaster & email address entered above will be the only persons to recieve the data. No valid entries are recorded.)</span>
          <?php
          echo "<br>";}
    else
        { ?>
        <input name="btnSubmitForEmail" type="submit" id="btnSubmitForEmail" value="Submit form and receive confirmation email" />
        <?php
    }
}?>
<p>
</p>

{/source}

Latest forum posts

  • No posts to display.