Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: MJ VC
Added: Jan 30, 2019 1:53 AM
Modified: Jan 30, 2019 1:54 AM
Views: 28
  1. function render_selection($wrapr_class, $div_class, $url_update, $id, $name, $value, $options){
  2.     echo "<div class='$wrapr_class'><div class='$div_class' style='margin-bottom:0px;'><span style='font-size: 10pt; font-weight:bold;'>$name</span>";  ?>
  3.     <select id="<?php echo $id?>" onchange="if (this.value) window.location.href='<?php echo $url_update;?>'+this.value">
  4.     <?php echo "<option selected='true'>$value</option>$options</select></div></div>";
  5.   }