Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Nov 2011
    Posts
    11
    Plugin Contributions
    0

    Default 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:

    PHP Code:
    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...

    PHP Code:
    <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:
    HTML Code:
    <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.
    Last edited by lastmiracle; 16 Jan 2012 at 10:16 AM. Reason: Added link to site

 

 

Similar Threads

  1. Replies: 4
    Last Post: 16 Aug 2012, 06:02 AM
  2. v139h Product Name to appear in Call for Price (contact us email subject line)
    By cmcneal in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Mar 2012, 11:25 AM
  3. Customer Specified Subject Line for Contact Form
    By jacdesigner in forum Basic Configuration
    Replies: 18
    Last Post: 31 Oct 2007, 11:01 AM
  4. Adding a subject line to the contact us form
    By bubblegumgoods in forum General Questions
    Replies: 2
    Last Post: 24 Jun 2007, 05:00 AM
  5. Contact us form drop down box for different departments?
    By immersive in forum General Questions
    Replies: 1
    Last Post: 29 Jan 2007, 09:44 PM

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