OK, so I have my contact form showing up where I want it to, but the default contact form is still there!
If you want to see what it's doing, click here. (I am also having some problems with my login/create account page coming up when it's not supposed to, sorry if that happens to you. I posted this "log in" problem elsewhere in the forum.)
Here is where I put the code for my form (my code is in red) inside of includes/templates/CUSTOM/tpl_contact_us_default.php:
Code:
<fieldset id="contactUsForm">
<legend><?php echo HEADING_TITLE; ?></legend>
<div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
<br class="clearBoth" />
<?php include "BELLmailer.php"; ?>
<?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, 0, 'id="send-to"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />
<?php
}
?>
<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', ($email_address), ' 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', $enquiry, 'id="enquiry"'); ?>
</fieldset>
I'm sure there should be some way for me to remove these fields (maybe by commenting them out or something. Deleting the lines removes EVERYTHING, including my define_pages info!), either in the includes/templates/CUSTOM/tpl_contact_us_default.php or one of the other files associated with the default form. I have been working on this since about 10 AM, and it is now 11:30 PM
Could someone please help me out here??? I would greatly appreciate it!
Bookmarks