Well, I have downloaded the mod and I thought it will work because I have set up the fields I needed and got rid of the ones I didn't. But then when i fill up the form and click "send" it shows me an error for the required fields that are not even there. What am I doing wrong? :frusty: Bascially this is my tpl_band_signup_default.php I am talking about:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | <http://www.zen-cart.com/index.php> |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | <http://www.zen-cart.com/license/2_0.txt>. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: tpl_band_signup_default.php,v 1.3 2007/06/07 00:00:00 DrByteZen Exp $
//
?>
<div class="centerColumn" id="bandSignupDefault">
<h1 id="bandSignupDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('band_signup') > 0) echo $messageStack->output('band_signup'); ?>
<?php
if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
?>
<div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div>
<div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
<?php
} else {
?>
<?php echo zen_draw_form('band_signup', zen_href_link(FILENAME_BAND_SIGNUP, 'action=send')); ?>
<div id="bandSignupContent" class="content">
<fieldset id="bandSignup-Info">
<legend>Local Orders</legend>
<div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
<br class="clearBoth" />
<label class="inputLabel" for="band_name">Your Name:</label>
<?php echo zen_draw_input_field('band_name', zen_output_string_protected($band_name), ' size="30" id="band_name"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br /><br />
<label class="inputLabel" for="contact1_email">Your Email:</label>
<?php echo zen_draw_input_field('contact1_email', zen_output_string_protected($contact1_email), ' size="30" id="contact1_email"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br /><br />
<label class="inputLabel" for="mailing_address1">Mailing Address:</label>
<?php echo zen_draw_input_field('mailing_address1', zen_output_string_protected($mailing_address1), ' size="30" id="mailing_address1"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br />
<br />
<label class="inputLabel" for="mailing_city">City:</label>
<?php echo zen_draw_input_field('mailing_city', zen_output_string_protected($mailing_city), ' size="30" id="mailing_city"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br /><br />
<label class="inputLabel" for="mailing_zipcode">Postal/Zip code:</label>
<?php echo zen_draw_input_field('mailing_zipcode', zen_output_string_protected($mailing_zipcode), ' size="30" id="mailing_zipcode"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br /><br />
<br class="clearBoth" />
<label for="comments">Your Order:</label>
<?php echo zen_draw_textarea_field('comments', 30, 4, zen_output_string_protected($comments), 'id="comments"'); ?>
</fieldset>
<br />
<!--<fieldset id="bandSignup-Conditions">
<legend>Terms and Conditions</legend>
<?php echo zen_draw_checkbox_field('termsandconds', '1', false, 'id="termsandconds"');?>
<label class="checkboxLabel" for="termsandconds">I have read and agree to the <a href="<?php echo zen_href_link(FILENAME_PAGE_4); ?>" target="_blank">user agreement</a>:</label>
</fieldset>-->
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
</div>
</form>
<?php
}
?>
</div>
</div>