New Zenner
- Join Date:
- Nov 2011
- Posts:
- 11
- Plugin Contributions:
- 0
Drop-down menu for email subject line in contact form
Hello! First off, I'm **completely **new to PHP and especially Zen Cart. The client wanted me to help fix a badly customized site, and I'm stuck at this.
I need to make a drop-down menu with subject selections (e.g., Orders Inquiry, Product Info Request, etc.), that will insert into into the subject line of the email.
From digging through the forum, I found the solution separately only each of the tasks (1. how to set up a drop-down menu -- kinda; 2. how to insert subject line through a text input box). I don't know how to combine them together :(
I added: ENTRY_DESCRIPTION and changed EMAIL_SUBJECT in contact_us.php:
define('EMAIL_SUBJECT', 'JHL Style:' .$description);
define('ENTRY_DESCRIPTION', 'Subject:');
I found out about zen_draw_pull_down_menu and I tried to use it but I have no clue how to...
<label class="inputLabel" for="subject"><?php echo ENTRY_DESCRIPTION; ?></label><br class="clearBoth" />
<?php echo zen_draw_pull_down_menu('description', ($error ? $_POST['name'] : $description), ' size="50"'); ?>
These are the options I want to add to the list:
<select name="description">
<option value="Order Inquiries">Order Inquiries</option>
<option value="Returns & Exchanges">Returns & Exchanges</option>
<option value="Product Questions">Product Questions</option>
<option value="Find Your Essence">Find Your Essence</option>
<option value="Other Inquiries">Other</option>
</select>
Thank you in advance for any insight!
Here's the link to the form. It's so messy.