Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 27th, 2012  |  syntax: PHP  |  size: 0.51 KB  |  views: 1,422  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. if ($_GET['ch'] == 'lub') {
  4.    ?>
  5. <select name="cityList">
  6. <option value="gw">Gorzow Wlkp</option>
  7. <option value="skw">Skwierzyna</option>
  8. </select>
  9.  
  10. <?php
  11. }
  12.  
  13.  
  14. if ($_GET['ch'] == 'zach') {
  15.    ?>
  16. <select name="cityList">
  17. <option value="zs">Szczecin</option>
  18. <option value="kosz">Koszalin</option>
  19. <option value="star">Stargard</option>
  20.  
  21. </select>
  22.  
  23. <?php
  24.  
  25. }
  26.  
  27.  
  28. if ($_GET['ch'] == 'wiel') {
  29.    ?>
  30. <select name="cityList">
  31. <option value="poz">Poznan</option>
  32.  
  33.  
  34. </select>
  35.  
  36. <?php
  37.  
  38. }
  39. ?>
clone this paste RAW Paste Data