We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16899
    • 284 Posts
    Hi Guys

    How can i get a TV Output Value updated from a select box option? This select box is created from an array.

    Select Box Code - Snippet Name ARRAY :

    $months = array( 'Choose a Month','January','February','March','April','May','June','July','August','September','October','November','December');
    
    foreach($months as $key => $value):
    echo '<option value="'.$key.'">'.$value.'</option>'; //close your tags!!
    endforeach;
    


    I need this because then i´m using IF snippet to update new values in my template:

    
    [[!If?
    &subject=`[[*package-month]]`
    &operator=`in_array`
    &operand=`March, April, October`
    &then=`€[[!getImageList? &tpl=`@CODE:[[+high-season]]` &tvname=`package-tarif` &docid=`[[!getUrlParam? &name=`package-id` &int=`1`]]`]]`
    &else=``
    ]]
    
    



    My situation is: I need to have an TV output value updated with the same value of the selected option and then get a way to the snippet IF update the value with the new condition. Ah, i used MIGX to generate Low-season, Medium-season and high-season values

    Is this possible? Many thanks in advance and sorry about my english. [ed. note: legues last edited this post 12 years, 9 months ago.]