Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default HTML Error and Warning on Confirmation Page

    Can anyone figure out why I'm getting an HTML error "missing </form>" and a warning "unexpected </form>" in my confirmation page? See the code below.

    <?php
    echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
    if (is_array($payment_modules->modules)) {
    echo $payment_modules->process_button();
    }
    ?>
    <br class="clearBoth" />
    <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
    </fieldset>
    </div>
    <br class="clearBoth" />
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
    </form>

    Thx Sweet

  2. #2
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: HTML Error and Warning on Confirmation Page

    The problem is the </form> at the bottom of the code doesn't have a matching <form> earlier in the code. What's the full text of the error message displayed? Usually there is reference to the file where the error occured which would help in troubleshooting.

    Ron

  3. #3
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: HTML Error and Warning on Confirmation Page

    The following code is generated when the page is loaded. The <form> tag is generated from the "zen_draw_form()" in the second line of code (see the first post above) but the HTML checker doesnt see the closing tag "</form>".

    <form name="checkout_confirmation" action="https://www.sweetzouzou.com/ipn_main_handler.php?type=ec&amp;markflow=1&amp;clearSess=1&amp;stage=final" method="post" id="checkout_confirmation" onsubmit="submitonce();">
    <br class="clearBoth" />
    <div class="buttonRow forward"><a href="https://www.sweetzouzou.com/index.php?main_page=shopping_cart"><img src="includes/templates/SweetZouZou/buttons/english/small_edit.gif" alt="Edit" title=" Edit " width="80" height="24" class="rollover" /></a></div>
    </fieldset>
    </div>
    <br class="clearBoth" />
    <div class="buttonRow forward"><input type="image" src="includes/templates/SweetZouZou/buttons/english/button_confirm_order.gif" alt="Confirm Order" title=" Confirm Order " name="btn_submit" id="btn_submit" class="rollover" /></div>
    </form>

    Thx Sweet

  4. #4
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: HTML Error and Warning on Confirmation Page

    Are you using a custom template?
    You may want to compare the code in
    /includes/templates/template_default/templates/tpl_checkout_confirmation_default.php
    to
    /includes/templates/[your custom template foldername]/templates/tpl_checkout_confirmation_default.php

    A good program for comparing contents of two files is WinMerge which is free (just google winmerge for a download site).

    Any differences in the files should be investigated as a possible reason for your error message.

    If you are not using a custom template, consider backing up your website then uploading the original includes/templates/template_default/templates/tpl_checkout_confirmation_default.php (from the original installation download) in case the one on the server is corrupted.

  5. #5
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: HTML Error and Warning on Confirmation Page

    ronlee, thanks for the suggestions. I found the fix by moving the "confirm button" and the </form> inside the </div> and the error went away.

    <?php
    echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
    if (is_array($payment_modules->modules)) {
    echo $payment_modules->process_button();
    }
    ?>
    <br/>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
    </form>
    </div>

  6. #6
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: HTML Error and Warning on Confirmation Page

    Glad you found it. Thanks for sharing your solution.

    Ron

 

 

Similar Threads

  1. Replies: 4
    Last Post: 24 Jun 2013, 09:51 PM
  2. Replies: 3
    Last Post: 21 Dec 2012, 01:53 PM
  3. v150 Adding terms and conditions to order confirmation email both text and html
    By OLCS in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Sep 2012, 10:21 PM
  4. Replies: 2
    Last Post: 23 Jul 2012, 12:00 AM
  5. Replies: 6
    Last Post: 22 May 2012, 02:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg