Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    May 2007
    Posts
    213
    Plugin Contributions
    0

    Default Re: Contact Us help...

    Yep... It appears to be something with the header_php.php file that Dr. Byte refers to, but not sure what yet.

  2. #12
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Contact Us help...

    I can see on your site that you managed to fix this... I'm having the same problem on my site..
    http://littleolemedesigns.com/index....age=contact_us

    What did you end up having to do to fix it?

  3. #13
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Contact Us help...

    I'm not real sure what's different.. but I got the code for this page from another store using this mod that I've worked on before, and it works...

    You have to edit the part about half way down where it says Optionvalue1, optionvalue2, etc to what you want your options set to.

    This is the code from
    Includes --> Templates --> Template Default (or Custom if you have a custom template) --> Templates --> tpl_contact_us_default.php

    Code:
    <?php
    /**
     * Page Template
     *
     * Loaded automatically by index.php?main_page=contact_us.<br />
     * Displays contact us page form.
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_contact_us_default.php 4272 2006-08-26 03:10:49Z drbyte $
     */
    ?>
    <div class="centerColumn" id="contactUsDefault">
    
    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
    
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php } ?>
    
    <?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 if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') { ?>
    <div id="contactUsNoticeContent" class="content">
    <?php
    /**
     * require html_define for the contact_us page
     */
      require($define_page);
    ?>
    </div>
    <?php } ?>
    
    <?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?>
    
    <fieldset id="contactUsForm">
    <legend><?php echo HEADING_TITLE; ?></legend>
    <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
    <br class="clearBoth" />
    
    <?php
    // show dropdown if set
        if (CONTACT_US_LIST !=''){
    ?>
    <label class="inputLabel" for="send-to"><?php echo SEND_TO_TEXT; ?></label>
    <?php echo zen_draw_pull_down_menu('send_to',  $send_to_array, 'id=\"send-to\"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    <?php
        }
    ?>
    
    
    <?php echo ($_POST['subject'])?>
    <select name="subject">
    <option value="">---------------------------Please Select a Subject---------------------------</option>
    <option value="option1">Option 1 text</option>
    <option value="option2">Option 2 text</option>
    <option value="option3">Option 3 text</option>
    <option value="option4">Other</option>
    </select>
    <?php echo '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'?>
    <br /><br class="clearBoth" />
    
    
    
    <label class="inputLabel" for="contactname"><?php echo ENTRY_NAME; ?></label>
    <?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    
    <label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
    <?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    
    
    
    
    <label for="enquiry"><?php echo ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
    <?php echo zen_draw_textarea_field('enquiry', '30', '7', '', 'id="enquiry"'); ?>
    
    </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>
    <?php
      }
    ?>
    </form>
    </div>

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. contact page help
    By kinembe in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Sep 2008, 11:24 PM
  2. Contact URL Help!
    By randyh5000 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Jun 2008, 07:30 PM
  3. Contact Us page help.
    By pettiger15 in forum General Questions
    Replies: 2
    Last Post: 27 Apr 2007, 12:47 PM
  4. Contact us help
    By kontrolfreek in forum General Questions
    Replies: 5
    Last Post: 11 Mar 2007, 03:25 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