Guest Posted January 15, 2005 Posted January 15, 2005 Hello all. Been customizing oscommerce for the first time tonight. Must say it's a very good piece of software. Have come across something really strange that's happening in two places though. Create Account: (create_account.php) On viewing the source it seems part of the outputted HTML is being removed just after the country drop down. outputs: <span class="inputRequirement">*</ which should be: <span class="inputRequirement">*</span> Product Listings (index.php) A similar thing is happening here too. outputs: </td> </tr> </ which should be: </td> </tr> </table> Anyone any ideas to why this would be happening, and even better a solution? Thanks in advance. Jon
Guest Posted January 15, 2005 Posted January 15, 2005 Here's another instance of this problem in action. The following is code from my current contact_us.php which has been altered quite a bit, but as far as I know nothing important has been removed. <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <link href="includes/raucous.css" rel="stylesheet" type="text/css"> <script language="JavaScript" src="includes/common.js"></script> <?php require(DIR_WS_INCLUDES . 'dropdowns.php'); ?> <script language="JavaScript" src="includes/mm_menu.js"></script></head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="750" align="center" cellspacing="0" cellpadding="0"> <tr><td class="col-left"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </td> <!-- body_text //--> <td width="100%" valign="top"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td class="bread-crumb"> <?php echo $breadcrumb->trail(' » '); ?> </td></tr> <tr><td class="main-area"> <h2><?php echo HEADING_TITLE; ?></h2> <?php if ($messageStack->size('contact') > 0) { ?> <p><?php echo $messageStack->output('contact'); ?></p> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?> <?php } else { ?> <div id="contact-form"> <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?> <fieldset> <legend>Contact Form</legend> <p><label for="name"><?php echo ENTRY_NAME; ?> </label><?php echo tep_draw_input_field('name'); ?></p> <p><label for="email"><?php echo ENTRY_EMAIL; ?> </label><?php echo tep_draw_input_field('email'); ?></p> <p><label for="message"><?php echo ENTRY_ENQUIRY; ?> </label><?php echo tep_draw_textarea_field('enquiry', 'soft', 30, 15); ?></textarea></p> <p class="btpara"><input type="submit" value="submit" id="submit" name="submit" class="button"/></p> <p><input type="hidden" name="where" value="1" /></p> </fieldset> </form> </div> <?php } ?> </td></tr> </table> </td></tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.