Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    2
    Plugin Contributions
    0

    help question Custom pull down lists

    Hey everyone,

    I'm at a loss with this one.

    I've been searching through many many posts trying to find a simple solution to this...

    I have a client who buys and sells gift cards and on a particular form I am trying to include a list of cards to select from. All I am looking to do is set up this simple list using this code:
    Code:
    zen_draw_pull_down_menu
    I understand the concept of adding regular input boxes using this:
    Code:
    <?php echo zen_draw_input_field('phone', zen_output_string_protected($_phone), ' size="30" id="phone"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    But I don't know enough to wrap my head around populating a list. I have a page made up with my form here: http://www.abcgiftcards.com/store/in...ge=become_dist

    You will see that I currently have lists in there but this is using code such as this:
    Code:
    <select name="merchant_desired" id="merchant_desired" class="required">
    <option value="select_one">Select One</option>
    <option value="amazon">Amazon</option>
    </select>
    I need make the list using Zen Carts method so that I can pass whatever a custom selects to be included in the email that is sent upon submission.

    Any help or pointers in the right direction would be greatly appreciated. Thank you.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: **Custom pull down lists

    Quote Originally Posted by hyperspeed9 View Post
    I need make the list using Zen Carts method so that I can pass whatever a custom selects to be included in the email that is sent upon submission.
    Actually, you don't.

    All you need to do is check the value of the $_POST['merchant_desired'] variable, since that's what's set when someone chooses something from the SELECT ... OPTION .... OPTION ... OPTION ... /SELECT list you built in HTML.



    The real "problem" you have on that page is that you're collecting Credit Card information on a non-SSL page ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139h Edit Pull Down Menu
    By traytray in forum General Questions
    Replies: 3
    Last Post: 6 Jun 2013, 08:23 AM
  2. Language pull down in navigation
    By DHQ in forum General Questions
    Replies: 0
    Last Post: 8 May 2007, 12:20 PM
  3. Pull down menu?
    By 240racr in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 15 Jan 2007, 10:08 PM
  4. Pull down menus
    By ~Barbara~ in forum General Questions
    Replies: 2
    Last Post: 1 Jun 2006, 01:48 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