Guest User

Untitled

a guest
Dec 15th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <select id="dynamic_select_company"> // On change the selected option is triggered
  2. <?php
  3. $countcompany = $pdo->prepare( $filterkomplex1 );
  4. $countcompany->execute(); ?>
  5. <option value="Browse.php" selected>Choose Company...</option>
  6.  
  7. <?php while($showcompany = $countcompany->fetch()) {?>
  8. <option
  9. <?php
  10. if ($_GET['Company'] == $showcompany['Company']) { ?> selected="true" <?php }; ?>
  11. value="<?php echo $furl ?>&Company=<?php echo $showcompany['Company']?>"> // i know this will append infinity GET_Parameters
  12. <?php echo $showcompany['Company']?> (<?php echo $showcompany['anzahl']?>) </option>
  13. <?php };?>
  14. </select>
  15.  
  16. <button>Delete part of string where GET-Parameter is &Company=XYZ</button>
  17.  
  18. <select id="dynamic_select_line"> ...
  19. <button>Delete part of string where GET-Parameter is &Line=XYZ</button>
  20. <select id="dynamic_select_group"> ...
  21. <button>Delete part of string where GET-Parameter is &Group=XYZ</button>
  22. <select id="dynamic_select_year"> ...
  23. <button>Delete part of string where GET-Parameter is &Year=XYZ</button>
Add Comment
Please, Sign In to add comment