<?php
function generujPrzyciski()
{
  $kategorie = array
  (
    "1" => "JavaScript",
    "2" => "PHP",
    "3" => "AJAX"
  );
  foreach($kategorie as $id => $kategoria){
    echo "<input type='button' value='$kategoria' id='btn$id'";
    echo "onclick='wyslijDane($id);' class='myButton' ";
    echo "style='width:100px;'/> &nbsp;";
  }
}
?>
